Re: [Dev-C++] dev c++ does not compile
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <or...@vp...> - 2004-03-31 18:46:56
|
Oladipo Odumosu wrote:
> why in the world are you trying to compile a C file
> with C++ headers? you can't compile a C program with
> C++ headers!
Are you sure?
#include <iostream>
using namespace std;
int main()
{
printf("Is it C ");
cout << "or C++?" << endl;
return 0;
}
Okay, I'm just teasing :)
Besides, never EVER do such horrid things, what I just wrote above!
(that needs -lstdc++ explicitly anyway, as gcc doesn't give it=20
automatically, only g++ does that)
--
Greetings,
Bal=E1zs
|