libtool
[Top][All Lists]
Advanced

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

Re: libtool/ltmain linking wrong stdc++


From: Albert Chin
Subject: Re: libtool/ltmain linking wrong stdc++
Date: Mon, 9 Oct 2006 11:51:26 -0500
User-agent: Mutt/1.5.6i

On Mon, Oct 09, 2006 at 03:07:45PM +0000, Taj Morton wrote:
> Searching the list archives, I see that other people have had this
> problem too, but the solutions in those threads don't really seem to
> work for me...
> 
> 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.
> 
> When compiling /opt/gcc-3.3/bin/gcc-g++-3.3, I get link errors
> because libstdc++.so is resolved to /usr/lib/libstdc++.so (the
> system lib), instead of the compilers lib in /opt/gcc-3.3/lib. When
> I delete the /usr/lib/libstdc++.so symlink, I get the error "Could
> not find /usr/lib/libstdc++.so" when linking.

What if you set LDFLAGS="-L/opt/gcc-3.3/lib"?

-- 
albert chin (address@hidden)




reply via email to

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