Mail Archives: djgpp/1995/08/01/02:14:01
On Mon, 31 Jul 1995, chm94 wrote:
> D:\GNU-C\gcc try.cc
> try.cc(.text+0x16):undefined reference to `cout'
> try.cc(.text+0x1b):undefined reference to `ostream::operator<<(char const *)'
You should do this:
gcc try.cc -lgpp
The C++ library isn't searched by the linker by default, you must tell it
to do it explicitly. This issue is explained in detail in the DJGPP FAQ
list (available as faq102.zip from the same place you get DJGPP), section
8.8.
- Raw text -