Other Software > Developer's Corner
Problems with GNU C++
f0dder:
You shouldn't use "iostream.h", you should use "iostream" and the proper std:: namespace identifiers.
EDIT:
"like this"
--- Code: C++ ---#include <iostream>//#include <header.h> using namespace std; int main(){ int iVar = 0; cout << "Simple C++ Program\n" << endl; return 0; }
pob:
Maybe that will only work if the include is:
#include "blahblah.h"
rather than with the <> - as that tends to mean it is in the default place.
SkyIDE:
Ahh yes, I tried #include "header.h" it didn't work. Sorry I didn't mention it. Normally this refers to the current directory.
Yes, I never use <iostream.h> The only reason I used it here is because some compilers do not support it out of the box and only support iostream.h. When I do the testing with SkyIDE, I just want to make sure it compiles...the rest the user can install/setup. With most compilers you can install add-ons to make it work but that's outside SkyIDE's scope. It is up to the user. SkyIDE should support automatically whatever the user installs for *that* compiler.
SkyIDE:
I tried with an older version of GNU C++, same story. I don't get it.
SkyIDE:
FIXED IT!
c++.exe -IC:\Test "C:\test.cpp"
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version