libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtool/ltmain linking wrong stdc++


From: Mike Frysinger
Subject: Re: libtool/ltmain linking wrong stdc++
Date: Mon, 9 Oct 2006 12:36:47 -0400
User-agent: KMail/1.9.4

On Monday 09 October 2006 11:07, Taj Morton wrote:
> My problem is that I have 2 compilers installed on my computer: gcc-3.4 in
> /usr (system compiler), and gcc-3.3 in /opt/gcc-3.3.

what you want to do just wont work regardless of the issue you raise below ... 
gcc 3.3 and gcc 3.4 have incompatible ABI's so you cannot mix things built 
with the two compilers as you'll just end up with some things using 
libstdc++.so.5 while others use libstdc++.so.6

> I'm not sure where libstdc++.so is being resolved. Any ideas how I can
> force libstdc++.so to be resolved to the compilers libstdc++?

this is a feature of libtool and will always cause you problems when you try 
to mix compilers that use gcc libtool files

the linker scripts (.la) encode the full path to the actual linker script ... 
so when you build a C++ app, the .la file will encode the full path to the 
libstdc++.la file from the gcc compiler that was used to build it
-mike

Attachment: pgpsaqTKzcQum.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]