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 :
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; }
I guess this is a backwards compatibility problem… I have compiled and ran the following program:
Code:
#include<iostream>
int main(){
	std::cout << "hello world";
	return 0;
}
And it runs perfectly.
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.