[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 10:19:22 +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.

when statically linking, order is significant

I just tried putting the .a files first, before any of the object files, as well as before and after the object file where the undefined references appear, but in every case I get the libtool warnings that it's not linking the library and then of course the resulting undefined references.

Where should I be placing the libraries on the command line so that libtool will not ignore them?


reply via email to

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