Date: Thu, 15 Feb 1996 17:43:19 +0200 (IST) From: Eli Zaretskii To: Henk Hennuin Cc: djgpp AT delorie DOT com Subject: Re: djgpp and the use of cout On Wed, 14 Feb 1996, Henk Hennuin wrote: > 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 &))' Did you remember to put -lgpp at the end of the link command line? (And btw, it is always best to post the exact command line you submit to gcc, so people can see at once if there is something wrong with it.)