Boost logo

Boost-Build :

Subject: Re: [Boost-build] Library generation GCC on Windows vs Linux
From: Christian Auby (christian_at_[hidden])
Date: 2009-11-20 08:59:53


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
"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 : "" ;

Christian

Vladimir Prus wrote:
> On Friday 20 November 2009 16:12:16 Christian Auby wrote:
>
>> If I rename "libhello.lib" to "libhello.a" it does link as expected on
>> MinGW.
>
> BTW, does it really link? I though that mingw does not like the fact that
> Boost.Build does not ran 'ranlib' on static libraries...
>
> - Volodya
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
>


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