Date: Wed, 28 Feb 1996 11:52:48 +0200 (IST) From: Eli Zaretskii To: Luk Wing Kong Cc: djgpp AT delorie DOT com Subject: Re: Undefine Reference In-Reply-To: <31340D89.4509@hkueee.hku.hk> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 28 Feb 1996, Luk Wing Kong wrote: > A lot of messages of "undefine reference to XXX(ostream &)" comes out at the end of compilation. > How to solve it? Did you read the DJGPP FAQ list (available as faq200b.zip from the same place you get DJGPP)? It answers this questions in section 8.7 (you didn't tell gcc to link in the C++ library). Invoke gcc thusly: gcc prog.cc -o prog.exe -lgpp or use gxx (which does the above automatically for you) instead of gcc, when compiling C++ programs. Please search the FAQ for your problems before posting, especially if you are a newcomer to DJGPP. The FAQ has a large index near its end; start by looking up your problem in that index.