Boost logo

Boost-Build :

Subject: Re: [Boost-build] Library generation GCC on Windows vs Linux
From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2009-11-20 09:30:38

Christian Auby wrote:
> Just noticed that with toolset=msvc the library is called
> "libhello.lib". Most libs that comes with the MSVC compiler do not have
> the "lib"-prefix, so I guess should have called this
> "hello.lib"?
> Supported by this error:
> "LINK : fatal error LNK1181: cannot open input file 'hello.lib'"
> depending on "hello"-lib does not look for "libhello.lib" but "hello.lib".
> Renaming it to "hello.lib" makes it link.
> I did a manual fix of this, and with the two fixes combined the
> exe-jamfile works with both mingw and msvc without changes.
> Fix:
> type.set-generated-target-prefix STATIC_LIB : <toolset>msvc : "" ;

Unfortunately that creates a collision with MSVC DLL export LIBs. And
hence why "lib" is prefixed to the static libraries. And to be
consistent so was mingw. But at some point the Min GCC would search for
"libxyz.lib", among a large list of other combinations, when specifying
-lxyz. Which version of MinGW are you using?

-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. -
-- rrivera/ (msn) - grafik/
-- 102708583/icq - grafikrobot/aim,yahoo,skype,efnet,gmail

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at