Results 1 to 1 of 1
Hi all, I am trying to install ddd on my debian and I am getting the : c++ compiler cannot create executables error massage. The log file shows the following ...
- 10-12-2011 #1Just Joined!
- Join Date
- Oct 2011
- Posts
- 3
Strange installation problem (g++)
Hi all, I am trying to install ddd on my debian and I am getting the : c++ compiler cannot create executables error massage. The log file shows the following :
I guess this is a backwards compatibility problem… I have compiled and ran the following program:Code:configure:1314: checking whether we are using GNU C++ configure:1323: g++ -E conftest.C configure:1342: checking whether g++ accepts -g configure:1530: checking whether the C++ compiler (g++) compiles a simple program configure:1551: g++ -o conftest conftest.C 1>&5 configure:1545:22: error: iostream.h: No such file or directory configure: In function 'int main()': configure:1547: error: 'cout' was not declared in this scope configure: failed program was: #line 1544 "configure" #include "confdefs.h" #include <iostream.h> int main() { cout << "hello, world!"; ; return 0; }
And it runs perfectly.Code:#include<iostream> int main(){ std::cout << "hello world"; return 0; }
So I guess what I need is some flag I can place in CXXFLAGS so it will run programs from back in the day when include<iostream.h> was exactable. or some other solution. Any help will be appreciated.


Reply With Quote
