Date: Sun, 10 Jan 1999 13:40:29 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Joshua Martell cc: djgpp AT delorie DOT com Subject: Re: Compiling C++ Programs, undefined references In-Reply-To: <3696c8e7.1196705@news.cybertours.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Sat, 9 Jan 1999, Joshua Martell wrote: > gcc -o hello.exe hello.o -lstdcx > > And I get back a list (incomplete) of undefined references in the file > something like this: > > d:\djgpp\lib\libstdcxx.a:stdiostream.o (stuff) __throw > libstdcxx.a:stdiostream.o (stuff) __eh_pc > libstdcxx.a:stdiostream.o (stuff) terminate(void) > libstdcxx.a:stdiostream.o (stuff) __rtti_class > libstdcxx.a:stdiostream.o (stuff) __rtti_si This one's in the FAQ (section 8.19): you are mixing compiler and libraries from different releases. Make sure all your C++-related files come from the gccNNNb.zip and gppNNNb.zip distributions where NNN is the same number.