[Top][All Lists]

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

Re: libtool does not add stdc++ when linking on Linux

From: Christian Thalinger
Subject: Re: libtool does not add stdc++ when linking on Linux
Date: Sat, 21 Jun 2008 13:57:20 +0200

On Fri, 2008-06-20 at 13:59 -0500, Bob Friesenhahn wrote:
> It is true that dependency information may be lacking from the 
> convenience libraries but ultimately the program needs to be linked 
> using the C++ compiler in order to be sure that everything will work. 
> G++ usually adds libstdc++ as an implicit dependency so the linkage 
> should work.
> I am not excusing libtool for not listing libstdc++ as a dependency. 
> It may be that the missing dependency information is actually due to 
> GCC not specifying it as a dependency since libtool typically obtains 
> this information from GCC.  Linux is usually resistent to specifying 
> explicit dependencies so it may be that GCC does not list this 
> dependency on Linux but it does on Solaris.

Can I check if that's the case with GCC on Linux?  Do you know any
commandline options from the top of your head?  Maybe it's a Debian GCC

- twisti

reply via email to

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