Boost logo

Boost Users :

Subject: Re: [Boost-users] build under MSVC with changed library name
From: Kraus Philipp (philipp.kraus_at_[hidden])
Date: 2012-08-22 16:51:10


Hi Steve,

Am 22.08.2012 um 22:14 schrieb Lemay.Steve:

> Yes, its documented somewhere within the boost.org getting Started Pages, or bjam documentation. I uncovered it a few months ago - but I am unable to relocate the documentation using boost.org search. I'm sure it's there somewhere.

*g* "somewhere" is a good choice

> I am unable to get MSVS static library builds to follow this naming convention - but, I'm glad to know it works for DLL's. It does work as advertised for gcc built static libraries.

But I have got a problem, I have build boost under VS with the --layout=system option, *.lib and *.dll files are named without any tags. Now I would like link this libraries and the linker
tries to search eg libboost_system-vc100-mt-s-1_51.lib also with the tags, but it does not find the lib, because it is named boost_system.lib (same problem with the DLLs)
My linker command shows: link /nologo /out:myprogram.exe /LIBPATH:library/boost/1.51.0/lib boost_program_options.lib boost_system.lib

Do you have an idea why the linker calls the wrong file?

Thanks

Phil

>
> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Kraus Philipp
> Sent: Wednesday, August 22, 2012 12:08 PM
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] build under MSVC with changed library name
>
> Thanks,
>
> that works, but is there a documentation for this flag?
>
> Thanks
>
> Phil
>
> Am 22.08.2012 um 16:17 schrieb Lemay.Steve:
>
>> Try --layout=system
>>
>>
>> SGL
>> steven.lemay_at_[hidden]
>>
>>
>> -----Original Message-----
>> From: boost-users-bounces_at_[hidden]
>> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Jurko
>> Gospodnetic
>> Sent: Wednesday, August 22, 2012 5:22 AM
>> To: boost-users_at_[hidden]
>> Subject: Re: [Boost-users] build under MSVC with changed library name
>>
>> Hi.
>>
>>> I'm using Boost under MSVC (build from source). Can I change the
>>> output library name of the compiled libs?
>>> Under unix systems the libs are named: libboost_<sublib>.so Under
>>> Windows ( http://www.boost.org/doc/libs/1_50_0/more/
>>> getting_started/windows.html#or-simplified-build-from-source ) there
>>> are a lot of other information in the filename.
>>> So I need only a special build type (no debug, mt, etc), so I would
>>> like to tell b2, that the name of the libraries are only
>>> boost_<sublib>.dll under Windows.
>>
>> I am not really sure I understand what you want here, but does perhaps the Boost library build script's '--layout' options solve your problems? It changes the way Boost library targets get their file names generated.
>>
>> Hope this helps.
>>
>> Best regards,
>> Jurko Gospodnetić
>>
>>
>> _______________________________________________
>> Boost-users mailing list
>> Boost-users_at_[hidden]
>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>> _______________________________________________
>> Boost-users mailing list
>> Boost-users_at_[hidden]
>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net