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