From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4248 invoked by alias); 6 Feb 2003 10:43:56 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 4237 invoked from network); 6 Feb 2003 10:43:55 -0000 Received: from unknown (HELO iuamtg.upf.es) (193.145.55.151) by 172.16.49.205 with SMTP; 6 Feb 2003 10:43:55 -0000 Received: from [193.145.55.171] (helo=mtg171) by iuamtg.upf.es with smtp (Exim 3.35 #1 (Debian)) id 18gjQX-0005Z2-00; Thu, 06 Feb 2003 11:38:41 +0100 Message-ID: <007101c2cdcb$ea73d4b0$ab3791c1@mtg171> From: =?iso-8859-1?Q?Miguel_Ram=EDrez?= To: "Eilmsteiner Reinhard" , References: <23FD0445E7F1D4119D910002A50981138D19A3@s-vie1-11.psc.com> Subject: Re: Linker trouble Date: Thu, 06 Feb 2003 10:43:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-MailScanner: Found to be clean X-SW-Source: 2003-02/txt/msg00067.txt.bz2 Are the libraries 'classlogging' and 'classgeneral' compiled with the same gcc version? Remember that 3.2 C++ ABI is incompatible with the one of previous releases, so recompiling the libraries should do the trick. Miguel. ----- Original Message ----- From: "Eilmsteiner Reinhard" To: Sent: Thursday, February 06, 2003 9:27 AM Subject: Linker trouble > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi! > > I'm trying to link a program which used to work on a older version of gcc > and ld.... Now I have gcc 3.2 and ld 2.13.90.0.2 > After all has been compiled (including the libraries classlogging and class > general (the latter uses the former) a do: > g++ -ggdb -I../../include -L../../lib -o logserver main.o clogserver.o > clogserverexception.o -lclasslogging -lclassgeneral > and get: > main.o: In function `main': > /home/eilmrein/Documents/proj/c/src/logserver/main.cc:27: undefined > reference to `CCommandLine::CCommandLine[in-charge](int, char const**)' > clogserver.o: In function > `CLogServer::GoToLoggingStage(CLogServer::TLogStage, bool, CCommandLine > const*)': > /home/eilmrein/Documents/proj/c/src/logserver/clogserver.cc:91: undefined > reference to `CString::operator()() const' > /home/eilmrein/Documents/proj/c/src/logserver/clogserver.cc:91: undefined > reference to `CString::~CString [in-charge]()' > /home/eilmrein/Documents/proj/c/src/logserver/clogserver.cc:91: undefined > reference to `CString::~CString [in-charge]()' > /home/eilmrein/Documents/proj/c/src/logserver/clogserver.cc:111: undefined > reference to `CString::operator()() const' > /home/eilmrein/Documents/proj/c/src/logserver/clogserver.cc:111: undefined > reference to `CString::~CString [in-charge]()' > /home/eilmrein/Documents/proj/c/src/logserver/clogserver.cc:111: undefined > reference to `CString::~CString [in-charge]()' > > When I do a "nm -C libclassgeneral.a" I can see these member functions > however. > Does it have anything to do with those [in-charge]/[not-in-charge] tags, > which I've not seen on my old version. (Please explain!) > > How do I get my program linked again? > > Thx, > Reinhard. > > -----BEGIN PGP SIGNATURE----- > Version: PGPfreeware 7.0.3 for non-commercial use > > iQA/AwUBPkIceFaO5+5ahqodEQLqhgCg4aUag+SIvqU3sCM0UcpaqpYb6pIAnRnG > Hll3+bgudQyOQCQ6enbQtRS0 > =e2oI > -----END PGP SIGNATURE----- >