Xref: news2.mv.net comp.os.msdos.djgpp:1134 From: Henk Hennuin Newsgroups: comp.os.msdos.djgpp Subject: djgpp and the use of cout Date: Wed, 14 Feb 1996 13:40:41 -0800 Organization: Philips Electronics BV. Lines: 32 Message-ID: <312256D9.C42@nlthcl.bcs.cs.philips.com> NNTP-Posting-Host: host-41-139.bcs.cs.philips.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Hello all, This is probably a newby question but I couldn't find the answer in the FAQ. Last week I downloaded EZ-GCC this is DJGPP v1.12m4 for easy installation and minimum diskspace. I have installed the 3 disk set onto my computer and tried my first little C++ program. So far so good. Now my problem: I have trouble with the cout iostream function. Everything seems to work allright but just this one thing doesn't. The compiler doesn't complain. The linker gives these errors: test.cc(.text+0xa5): undefined reference to `endl(ostream &)' test.cc(.text+0xaa): undefined reference to `cout' test.cc(.text+0xaf): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))' The last error message I managed to get rid of by using the -O flag with gcc. This tip I go from the FAQ, it has got something to do with optimalisation and inline code. Does anybody know how I can solve the other two? Thank you, Henk hennuin.