build under MSVC with changed library name
Hello, 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-si... ) 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. How can I do this renaming on the compiling call? Thanks Phil
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ć
Am 22.08.2012 um 14:21 schrieb Jurko Gospodnetić:
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.
I found the --layout option also, but I don't know how to use the option. I think this flag can solve my problem, but do you have any documentation? Thanks Phil
Hi.
I found the --layout option also, but I don't know how to use the option. I think this flag can solve my problem, but do you have any documentation?
See the main Boost library build script - Jamroot. Its header comment documents all of the options implemented there. You can get the same information displayed by running 'bjam --help' in the Boost library's root folder. And as for the --layour option - you specify it on the command-line used to compile boost libraries, e.g. '--layout=versioned'. Hope this helps. Best regards, Jurko Gospodnetić
Try --layout=system SGL steven.lemay@igt.com -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Jurko Gospodnetic Sent: Wednesday, August 22, 2012 5:22 AM To: boost-users@lists.boost.org 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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
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@igt.com
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Jurko Gospodnetic Sent: Wednesday, August 22, 2012 5:22 AM To: boost-users@lists.boost.org 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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
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. 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. SGL steven.lemay@igt.com -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Kraus Philipp Sent: Wednesday, August 22, 2012 12:08 PM To: boost-users@lists.boost.org 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@igt.com
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Jurko Gospodnetic Sent: Wednesday, August 22, 2012 5:22 AM To: boost-users@lists.boost.org 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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
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@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Kraus Philipp Sent: Wednesday, August 22, 2012 12:08 PM To: boost-users@lists.boost.org 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@igt.com
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Jurko Gospodnetic Sent: Wednesday, August 22, 2012 5:22 AM To: boost-users@lists.boost.org 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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
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@igt.com -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Kraus Philipp Sent: Wednesday, August 22, 2012 1:51 PM To: boost-users@lists.boost.org 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@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Kraus Philipp Sent: Wednesday, August 22, 2012 12:08 PM To: boost-users@lists.boost.org 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@igt.com
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Jurko Gospodnetic Sent: Wednesday, August 22, 2012 5:22 AM To: boost-users@lists.boost.org 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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
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@options_description@program_options@boost@@2IB)" in Funktion "_main".
"class std::basic_string
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@igt.com
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Kraus Philipp Sent: Wednesday, August 22, 2012 1:51 PM To: boost-users@lists.boost.org 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@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Kraus Philipp Sent: Wednesday, August 22, 2012 12:08 PM To: boost-users@lists.boost.org 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@igt.com
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Jurko Gospodnetic Sent: Wednesday, August 22, 2012 5:22 AM To: boost-users@lists.boost.org 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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
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@options_description@program_options@boost@@2IB)" in Funktion "_main".
"class std::basic_string
boost::program_options::arg" (?arg@program_options@boost@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A)" in Funktion ""public: virtual class std::basic_string __thiscall boost::program_options::typed_value ,char>::name(void)const " (?name@?$typed_value@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@D@program_options@boost@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?allocator@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@igt.com
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Kraus Philipp Sent: Wednesday, August 22, 2012 1:51 PM To: boost-users@lists.boost.org 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@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Kraus Philipp Sent: Wednesday, August 22, 2012 12:08 PM To: boost-users@lists.boost.org 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@igt.com
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Jurko Gospodnetic Sent: Wednesday, August 22, 2012 5:22 AM To: boost-users@lists.boost.org 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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Would you share your bjam configuration with me? SGL steven.lemay@igt.com -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Philipp Kraus Sent: Wednesday, August 22, 2012 6:05 PM To: boost-users@lists.boost.org 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@options_description@program_options@boost@@2IB)" in Funktion "_main".
"class std::basic_string
boost::program_options::arg" (?arg@program_options@boost@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A)" in Funktion ""public: virtual class std::basic_string __thiscall boost::program_options::typed_value ,char>::name(void)const " (?name@?$typed_value@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@D@program_options@boost@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?allocator@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@igt.com
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Kraus Philipp Sent: Wednesday, August 22, 2012 1:51 PM To: boost-users@lists.boost.org 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@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Kraus Philipp Sent: Wednesday, August 22, 2012 12:08 PM To: boost-users@lists.boost.org 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@igt.com
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Jurko Gospodnetic Sent: Wednesday, August 22, 2012 5:22 AM To: boost-users@lists.boost.org 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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
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@igt.com
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Philipp Kraus Sent: Wednesday, August 22, 2012 6:05 PM To: boost-users@lists.boost.org 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@options_description@program_options@boost@@2IB)" in Funktion "_main".
"class std::basic_string
boost::program_options::arg" (?arg@program_options@boost@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A)" in Funktion ""public: virtual class std::basic_string __thiscall boost::program_options::typed_value ,char>::name(void)const " (?name@?$typed_value@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@D@program_options@boost@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?allocator@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@igt.com
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Kraus Philipp Sent: Wednesday, August 22, 2012 1:51 PM To: boost-users@lists.boost.org 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@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Kraus Philipp Sent: Wednesday, August 22, 2012 12:08 PM To: boost-users@lists.boost.org 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@igt.com
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Jurko Gospodnetic Sent: Wednesday, August 22, 2012 5:22 AM To: boost-users@lists.boost.org 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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
But at the moment I can build Boost & a my program, but if I run the program it crashs. I think the /D flags are incorrect. The main function shows boost::program_options::options_description l_description("allowed options"); return 0 I have build Boost with variant=debug or release and --layout=system but the compiled program crashs Am 23.08.2012 um 18:36 schrieb Lemay.Steve:
Would you share your bjam configuration with me?
SGL steven.lemay@igt.com
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Philipp Kraus Sent: Wednesday, August 22, 2012 6:05 PM To: boost-users@lists.boost.org 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@options_description@program_options@boost@@2IB)" in Funktion "_main".
"class std::basic_string
boost::program_options::arg" (?arg@program_options@boost@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A)" in Funktion ""public: virtual class std::basic_string __thiscall boost::program_options::typed_value ,char>::name(void)const " (?name@?$typed_value@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@D@program_options@boost@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?allocator@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@igt.com
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Kraus Philipp Sent: Wednesday, August 22, 2012 1:51 PM To: boost-users@lists.boost.org 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@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Kraus Philipp Sent: Wednesday, August 22, 2012 12:08 PM To: boost-users@lists.boost.org 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@igt.com
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Jurko Gospodnetic Sent: Wednesday, August 22, 2012 5:22 AM To: boost-users@lists.boost.org 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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (4)
-
Jurko Gospodnetić
-
Kraus Philipp
-
Lemay.Steve
-
Philipp Kraus