Mail Archives: djgpp/1996/02/15/10:50:04
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.)
- Raw text -