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-23 12:51:24


I'm using this command

b2 --with-thread --with-program_options --with-filesystem --disable-filesystem2 link=shared runtime-link=shared threading=multi variant=%V% install --layout=system --prefix=
and %V% is replaces with "release" or "debug"

Phil

Am 23.08.2012 um 18:36 schrieb Lemay.Steve:

> Would you share your bjam configuration with me?
>
>
> SGL
> steven.lemay_at_[hidden]
>
>
> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Philipp Kraus
> Sent: Wednesday, August 22, 2012 6:05 PM
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] build under MSVC with changed library name
>
> I have setup the flags:
>
> /EHsc
> /DBOOST_ALL_NO_LIB
> /DBOOST_ALL_DYN_LINK
>
> and now VS builds a correct working executable
>
>
> On 2012-08-23 02:19:45 +0200, Kraus Philipp said:
>
>> I'm building the executable on the command line, so I have set the
>> define BOOST_ALL_NO_LIB but now I get a linker error in the boost
>> program option (the symbol can not resolved):
>>
>> "public: static unsigned int const
>> boost::program_options::options_description::m_default_line_length"
>> (?m_default_line_length_at_options_description_at_program_options_at_boost@@2IB)"
>> in Funktion "_main".
>>
>> "class std::basic_string<char,struct std::char_traits<char>,class
>> std::allocator<char> > boost::program_options::arg"
>> (?arg_at_program_options_at_boost@@3V?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@A)"
>> in Funktion ""public: virtual class std::basic_string<char,struct
>> std::char_traits<char>,class std::allocator<char> > __thiscall
>> boost::program_options::typed_value<class
>> std::basic_string<char,struct std::char_traits<char>,class
>> std::allocator<char>
>>> ,char>::name(void)const "
>> (?name@?$typed_value_at_V?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@D_at_program_options_at_boost@@UBE?AV?$basic_string_at_DU?$char_traits_at_D@std@@V?allocator_at_D@2@@std@@XZ)".
>>
>>
>> I'm not working with VS all the time, I'm using g++ on unix systems,
>> so it is a little bit confused.
>> Thanks a lot for your message
>>
>> Phil
>>
>>
>>
>> Am 23.08.2012 um 00:58 schrieb Lemay.Steve:
>>
>>> I'm not a MS Visual Studio guy... but you may need to turn off auto
>>> linking and manual configure your project.
>>>
>>> SGL
>>> steven.lemay_at_[hidden]
>>>
>>>
>>> -----Original Message-----
>>> From: boost-users-bounces_at_[hidden]
>>> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Kraus
>>> Philipp
>>> Sent: Wednesday, August 22, 2012 1:51 PM
>>> To: boost-users_at_[hidden]
>>> Subject: Re: [Boost-users] build under MSVC with changed library name
>>>
>>> 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 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 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