www.delorie.com/archives/browse.cgi | search |
Date: | Sun, 10 Jan 1999 13:40:29 +0200 (IST) |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
X-Sender: | eliz AT is |
To: | Joshua Martell <martell AT cybertours DOT com> |
cc: | djgpp AT delorie DOT com |
Subject: | Re: Compiling C++ Programs, undefined references |
In-Reply-To: | <3696c8e7.1196705@news.cybertours.com> |
Message-ID: | <Pine.SUN.3.91.990110134011.20678Y-100000@is> |
MIME-Version: | 1.0 |
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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |