libtool
[Top][All Lists]
Advanced

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

Re: Making .lib import libraries with libtool


From: Roumen Petrov
Subject: Re: Making .lib import libraries with libtool
Date: Sat, 21 Feb 2009 15:27:31 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.19) Gecko/20081226 SeaMonkey/1.1.14

LRN wrote:
I have a project that uses autoconf/automake/libtool, and it produces
shared libraries (on Windows that would be .dll) and static libraries
(.a). Which modifications are necessary for it to start outputing .lib
libraries (the ones that could be linked with link.exe) along with
.dll's? I can hack configure script and add calls to lib.exe, but that
doesn't seem right, and i would rather try doing that in configure.ac.

You didn't specify compiler. If it is GCC(mingwXX target) compiler produce import libraries with suffix ".dll.a". In most cases just changing suffix work. Exception is both direction (.lib<->.dll.a) is for exported variables. In general even MSVC didn't produce compatible import libraries. Library created by compiler version X may not work for version Y. I'm not informed that this issue is resolved.
Def-files are more portable and some projects prefer this way.

Roumen




reply via email to

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