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 boost.build should have called this
> 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.
> 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. - http://redshift-software.com -- rrivera/acm.org (msn) - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim,yahoo,skype,efnet,gmail
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk