[Top][All Lists]

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

Re: libtool won't link with static libraries

From: Adam Nielsen
Subject: Re: libtool won't link with static libraries
Date: Sat, 30 Apr 2011 21:15:25 +1000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv: Gecko/20091130 Thunderbird/ Mnenhy/

*** Warning: Trying to link with static lib archive
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because the file extensions .a of this argument makes me believe
*** that it is just a static archive that I should not use here.

I've discovered that if I manually add the .a files back into the g++ command that libtool runs, then it will be linked correctly. So the problem is definitely due to libtool discarding the .a files given to it instead of listing them along with the other libraries when it calls g++.

Does anyone know what could cause this? Or how to force libtool to pass the filename through as-is?


reply via email to

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