Re: [Boost-users] [Program Options] Difficulty compiling for static runtime library
Lindley M French wrote:
I have a large project that I'd like to use Boost.Program Options with. Most of the other Visual Studio 2005 projects are set to link against "Multithreaded" or "Multithreaded Debug" rather than the DLL variants of same; so of course, I need to build Program Options accordingly.
I tried this: bjam.exe" release --runtime-link=static program_options
But that did not produce the library that VS wants, which is:
libboost_program_options-vc80-mt-s-1_39.lib
Try bjam release runtime-link=static --with-program_options
In Christ, Steven Watanabe
I tried that, it produced the following output: bjam.exe release --runtime-link=static --with-program_options WARNING: No python installation configured and autoconfiguration failed. See http://www.boost.org/libs/python/doc/building.html for configuration instructions or pass --without-python to suppress this message and silently skip all Boost.Python targets warning: No toolsets are configured. warning: Configuring default toolset "msvc". warning: If the default is wrong, your build may not work correctly. warning: Use the "toolset=xxxxx" option to override our guess. warning: For more configuration options, please consult warning: http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html Building C++ Boost. After the build, the headers will be located at C:\Documents and Settings\lfrench\Desktop\MADCAT\atg-madcat-dev\im_nav\projects\madcat\third-party-software\boost_1_39_0 The libraries will be located at C:\Documents and Settings\lfrench\Desktop\MADCAT\atg-madcat-dev\im_nav\projects\madcat\third-party-software\boost_1_39_0\stage\lib Use 'bjam install --prefix=<path>' if you wish to install headers and libraries to a different location and remove the source tree. ...patience... ...found 523 targets... ...updating 15 targets... common.mkdir bin.v2\libs\program_options\build\msvc-8.0\release\link-static common.mkdir bin.v2\libs\program_options\build\msvc-8.0\release\link-static\threading-multi compile-c-c++ bin.v2\libs\program_options\build\msvc-8.0\release\link-static\threading-multi\cmdline.obj cmdline.cpp libs\program_options\src\cmdline.cpp(272) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) compile-c-c++ bin.v2\libs\program_options\build\msvc-8.0\release\link-static\threading-multi\config_file.obj config_file.cpp compile-c-c++ bin.v2\libs\program_options\build\msvc-8.0\release\link-static\threading-multi\options_description.obj options_description.cpp compile-c-c++ bin.v2\libs\program_options\build\msvc-8.0\release\link-static\threading-multi\parsers.obj parsers.cpp compile-c-c++ bin.v2\libs\program_options\build\msvc-8.0\release\link-static\threading-multi\variables_map.obj variables_map.cpp compile-c-c++ bin.v2\libs\program_options\build\msvc-8.0\release\link-static\threading-multi\value_semantic.obj value_semantic.cpp compile-c-c++ bin.v2\libs\program_options\build\msvc-8.0\release\link-static\threading-multi\positional_options.obj positional_options.cpp compile-c-c++ bin.v2\libs\program_options\build\msvc-8.0\release\link-static\threading-multi\utf8_codecvt_facet.obj utf8_codecvt_facet.cpp compile-c-c++ bin.v2\libs\program_options\build\msvc-8.0\release\link-static\threading-multi\convert.obj convert.cpp compile-c-c++ bin.v2\libs\program_options\build\msvc-8.0\release\link-static\threading-multi\winmain.obj winmain.cpp msvc.archive bin.v2\libs\program_options\build\msvc-8.0\release\link-static\threading-multi\libboost_program_options-vc80-mt-1_39.lib common.copy stage\lib\libboost_program_options-vc80-mt-1_39.lib bin.v2\libs\program_options\build\msvc-8.0\release\link-static\threading-multi\libboost_program_options-vc80-mt-1_39.lib 1 file(s) copied. ln-NT stage\lib\libboost_program_options-vc80-mt.lib "NT symlinks not supported yet, making copy" 1 file(s) copied. ...updated 15 targets... It doesn't appear to be using the correct filename.
Lindley M French wrote:
Try bjam release runtime-link=static --with-program_options
I tried that, it produced the following output:
bjam.exe release --runtime-link=static --with-program_options
It does not seem you have tried *exactly* what Steven has suggested. - Volodya
participants (2)
-
Lindley M French
-
Vladimir Prus