From: "George Kinney" Subject: Re: I really need help and the FAQ doesnt cover this!! Newsgroups: comp.os.msdos.djgpp References: <5uem3p$f2o AT ns DOT technonet DOT com> Organization: The Unknown Programmers Message-ID: <01bcb74b$1b6d2820$e18033cf@markov> NNTP-Posting-Host: 207.51.128.225 Date: 2 Sep 97 02:41:04 GMT Lines: 40 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Faust wrote in article <5uem3p$f2o AT ns DOT technonet DOT com>... > > ----------- > hello.cpp:1: iostream.h: No Such File or Directory (ENOENT) > ----------- > > Ive also tried removing the "#include " line and it says: > > ----------- > hello.cpp: In Function 'int main()': > hello.cpp:3: 'cout' undeclared (first use this function) > hello.cpp:3: (Each undeclared identifier is reported only once > hello.cpp:3: for each function it appears in.) > ----------- > > Anyone know what my problem is? Ive spent forever trying to figure it out... You need to either: add the iostream lib to your command line with -lstdcx so the linker knows that it needs to liik in it. or use gxx instead of gcc to compile C++ source, which does the above step for you. Also, this *is* in the FAQ, specifically section 8.7 Unresolved externals when linking programs And depending on which functions you use from the C++ lib, you may also want to check section 8.10 C++ functions still not found Good luck. ------------------------- George Kinney gkinney (AT) usa (DOT) net