- , , , .
Visual Studio , Boost , , , . bjam.exe "-" , :
bjam.exe link=shared --threading=multi --variant=debug --variant=release --with-chrono --with-regex --with-thread stage
libs DLL Boost/stage/lib, , , Boost_LIBRARY_DIR C:/Boost/stage/lib.
, :
runtime-link = shared/static
toolset= msvc-11.0
:
boost_chrono-vc110-mt-1_58.lib
boost_chrono-vc110-mt-1_58.dll
:
boost_chrono-vc110-mt-gd-1_58.lib
boost_chrono-vc110-mt-gd-1_58.dll
CMake , CMakeLists.txt:
add_definitions( -DBOOST_ALL_DYN_LINK ) //If not VS will give linking errors of redefinitions
set(Boost_USE_STATIC_LIBS OFF )
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost COMPONENTS thread chrono regex REQUIRED )
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
TARGET_LINK_LIBRARIES( ${PROJ_NAME} ${Boost_LIBRARIES} )