Date: Thu, 15 Feb 1996 20:09:23 -0500 To: Henk Hennuin , djgpp AT delorie DOT com From: Ian Viemeister Subject: Re: djgpp and the use of cout At 01:40 PM 2/14/96 -0800, Henk Hennuin wrote: >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 &))' Well, this is answered in Section 8.8 of the FAQ, but here's the solution: Run "gcc [filename.cc] -lgpp" The '-lgpp' tells the linker to search libgpp.a for unresolved functions. Ian vmeister AT ios DOT com http://ios.com/~vmeister/