Date: Tue, 1 Aug 1995 08:25:46 +0300 (IDT) From: Eli Zaretskii To: chm94 Cc: djgpp AT sun DOT soe DOT clarkson DOT edu, chm94 AT aber DOT ac DOT uk Subject: Re: Problem with , gcc msdos version 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.