Mail Archives: djgpp/1996/02/28/05:08:17
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.
- Raw text -