libtool
[Top][All Lists]
Advanced

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

Re: Linking together .dll using .a static libraries


From: Bob Friesenhahn
Subject: Re: Linking together .dll using .a static libraries
Date: Thu, 26 Feb 2009 20:12:40 -0600 (CST)

On Fri, 27 Feb 2009, LRN wrote:

OK, maybe it's a stupid question, but i have to ask anyway.
MinGW ships some static .a libraries. How do i link these to shared .dll
libraries? It seems that libtool always performs a check (filemagic in
my case) on each -lname argument, and to pass that check the library has
to be "x86 archive import" or "x86 DLL", but not "x86 archive static".

You don't since then chaos would result due to duplicate symbols. Apply these libraries when linking the dependent application and then all will be well. If you don't know in advance if the libraries are static or DLLs, then pass the full list of libraries in all cases, and then all will be well.

Bob
--
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/




reply via email to

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