Mail Archives: djgpp/1996/02/15/20:16:04
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/
- Raw text -