|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
gcc says <iostream.h> not found
Hello
Since I reinstalled mandrake-ppc-8.0 on my iBook I'm not able to compile the simplest hello world app: #include <iostream.h> int main() { cout << "hello world" << endl; return 0; } mozilla with it's super-duper configure-script fails with the same error :-( iostream.h is in /usr/include/g++2 Any help apprecciated because I have to finish an application for school. Regards, Robert |
|
#2
|
||||
|
||||
|
try using g++ instead of gcc
Also, with the latest C++ standard, the include should really be #include <iostream> #include <iostream.h> will also work, but the latest C++ standards refer to most includes without the .h (presumably to keep them separate from the C header files). |
|
#3
|
|||
|
|||
|
Unfortunately I went through all possible combinations of gcc/g++ and <iostream.h>/<iostream> and it didn't make any difference.
Is there another config file for gcc? I didn't find any paths in the .specs. |
|
#4
|
|||
|
|||
|
did you install the kernel includes?
|
|
#5
|
|||
|
|||
|
However - an install from scratch solved the problem. I simply don't get along with these rpms and the Mandrake setup - I only wanted to make it easy by using Mandrake ...
apt-get forever! |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > gcc says <iostream.h> not found |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|