On Fri, 30 Jan 1998, Shane D. McAndrew wrote: > $ gcc hello.c > hello.c:1: iostream.h: No such file or directory > > > I have searched my whole hard-disk, and there is no file called iostream.h > However, I did find lots of other commonly used header files, such as > > usr/include/asm/string.h > usr/lib/gcc-lib/i486-linux/2.7.2.1/include/limits.h > > > Can anyone see what's gone wrong? Here is the program I am trying to compile - > > $ cat hello.c > #include <iostream.h> > // This program prints "Hello, World." > main () > { > cout << "Hello, World.\n"; > return 0; > }
Two probems. 1) You have a C++ program there, rename it to .cc and use g++ on it. 2) You need libg++27-dev -- Scott K. Ellis <[EMAIL PROTECTED]> http://www.gate.net/~storm/ -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .