我正在尝试在Windows上使用zlib支持构建boost库。我需要使用Intel C ++编译器,因为我需要它具有的某些功能。我已经能够使用Visual Studio编译器通过zlib支持来构建boost,但是由于某些原因,当我使用Intel编译器时boost无法识别zlib。
使用Visual Studio编译器,通过这篇文章,我可以在Windows上使用zlib和bzip2支持来增强构建。但是,我需要使用Intel编译器进行构建,因为Visual Studio生成的库似乎不兼容。最初我对此有一些问题,但是这篇文章可以帮助我克服一些最初的不兼容问题。
我无法将两者成功结合。
我尝试使用以下命令使用Intel编译器构建具有zlib支持的boost库:
.\b2.exe -j7 --build-type=complete address-model=64 architecture=x86 -s BZIP2_BINARY=libbz2 -s BZIP2_INCLUDE=C:\lib\GnuWin32\src\bzip2\1.0.5\bzip2-1.0.5 -s BZIP2_LIBPATH=C:\lib\GnuWin32\src\bzip2\1.0.5\
bzip2-1.0.5 -s ZLIB_BINARY=zlib -s ZLIB_INCLUDE=C:\lib\zlib-1.2.11-Self\zlib-1.2.11 -s ZLIB_LIBPATH=C:\lib\zlib-1.2.11-Self\zlib-1.2.11 threading=multi link=static,shared runtime-link=shared --toolset=intel --debug --user-
config=intel-user-config.jam
Run Code Online (Sandbox Code Playgroud)
我的问题:它构建了库,但是没有zlib支持。我得到以下输出:
testing module modules...
testing module assert...
testing module errors...
testing module sequence...
testing module numbers...
testing module string...
testing module regex...
C:/local/boost_1_69_0 - Copy/tools/build/src/tools\intel-win.jam:48: Unescaped special character in argument ([0-9]+).*
C:/local/boost_1_69_0 - …Run Code Online (Sandbox Code Playgroud)