Open UMU618 opened 3 years ago
Jamfile.v2
import boost ;
# no problem if using <root> to locate $(BOOST_ROOT)
#using boost : 1.76 : <root>C:/dev/boost_1_76_0 ;
# failed if use the installed one
using boost : 1.76 : <include>C:/dev/include/boost-1_76 <library>C:/dev/lib ;
boost.use-project ;
project test_boost
: requirements
<cxxstd>latest
<toolset>clang:<cxxstd>17
<optimization>speed
<threading>multi
: default-build release
: build-dir ./bin
;
exe test_boost
: main.cpp
: <library>/boost//program_options
;
https://github.com/boostorg/boost/commit/06c1e1ee6cde5231eda696b8d7bf957fd1333d93 was not mirrored to src/contrib/boost.jam
boostorg/boost@06c1e1e was not mirrored to
src/contrib/boost.jam
Thank you! I will use stage
instead of install
on Windows.
I use b2 to compile a simple example, and got an error with msvc/Windows:
The file
boost_program_options-vc142-mt-1_76.lib
should beboost_program_options-vc142-mt-x64-1_76.lib
.https://github.com/boostorg/build/blob/d52f1993d906aa3fd3649a8dd5134402794bf86e/src/contrib/boost.jam#L306
After looking up
boost.jam
, I think on Windows this should be:After adding,
b2 architecture=x86 address-model=64
succeeded.