# I:\modular-boost\libs\hello_boost\example # Runs hello boost example to test if toolsets and Boost library are configured correctly. # This version does not use any linked libraries. # Copyright Paul A. Bristow 2014. # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) # bjam command lines: # >b2 -a # Just msvc debug # >b2 -a toolset=gcc # just gcc debug # >b2 -a toolset=gcc release # just gcc release # >b2 -a toolset=msvc debug release # both variants for msvc. # >b2 -a toolset=gcc,msvc debug release # Both toolset and both variants. # b2 -a toolset=gcc # b2 -a toolset=clang # b2 -a toolset=clang-4.0.0 # b2 -a toolset=clang-4.0.0, gcc # b2 toolset=msvc-14.0 ... # b2 -a toolset=msvc,gcc-4.9.1,gcc-5.1.0,gcc-5.3.0,clang-3.8.0, clang-4.0.0 # optional redirect output to a log file > example.log import modules ; # Bring in the rules for testing: import testing ; # Needed for run? project : requirements # include headers: ../../.. # modular-boost == BOOST_ROOT # ../include # /libs/hello_boost/include # Libraries: # /boost/system//boost_system # /boost/thread//boost_thread # date-time uses #static:BOOST_DATE_TIME_STATIC_LINK #../build//boost_chrono # Toolset requirements: # GCC requirements. #gcc:-std=gnu++11 # if requires C++11 library. gcc:-Wno-unused-local-typedefs gcc:-Wno-missing-braces # Clang requirements. # clang:-std=c++11 # if requires C++11 library. # -fms-compatibility-version=19.00 may beeded? # Other toolsets: darwin:-Wno-missing-braces acc:+W2068,2461,2236,4070 intel:-Qwd264,239 # MSVC requirements. msvc:static msvc:static msvc:all msvc:on msvc:_CRT_SECURE_NO_DEPRECATE msvc:_SCL_SECURE_NO_DEPRECATE msvc:_SCL_SECURE_NO_WARNINGS msvc:_CRT_SECURE_NO_WARNINGS msvc:/wd4996 # == #define _SCL_SECURE_NO_WARNINGS msvc:/wd4512 # Assignment operator could not be generated. msvc:/wd4610 # msvc:/wd4510 # msvc:/wd4127 # Conditional expression is constant. msvc:/wd4701 # msvc:/wd4305 # ; run hello_boost.cpp ; # run hello_boost.cpp ; # at \modular-boost\libs\hello_boost\example # is the same as: #run ../example//hello_boost.cpp ; # Note the bizarre extra double-slash essential // before the actual target! #run hello_boost_library.cpp /boost/chrono//boost_chrono ; # J:\Cpp\Misc\hello_boost_library\hello_boost_library.cpp # These are in J so won't work yet. #run ../../hello_boost_exception/example//hello_boost_exception.cpp ; # J:\Cpp\Misc\hello_boost_exception\hello_boost_exception.cpp