我使用以下命令构建Boost库:
C:\ Code \ Libraries \ boost_1_51_0> bjam toolset = msvc-10.0 variant = debug,release threading = multi link = static define =“ _ITERATOR_DEBUG_LEVEL = 0 ”
但是调试库仍然在dumpbin工具中显示_ITERATOR_DEBUG_LEVEL = 2(dumpbin工具的输出如下所示)。如何使用_ITERATOR_DEBUG_LEVEL = 0构建Boost库的调试版本?
dumpbin工具的输出:
转储文件C:\ code \ Libraries \ boost_1_51_0 \ stage \ lib \ libboost_chrono-vc100-mt-gd-1_51.lib
文件类型:LIBRARY
链接器指令
/ FAILIFMISMATCH: “_ MSC_VER = 1600”
/ FAILIFMISMATCH:的 “_ ITERATOR_DEBUG_LEVEL = 2”
/ DEFAULTLIB: “msvcprtd”
/ DEFAULTLIB: “UUID.LIB”
/ DEFAULTLIB: “UUID.LIB”
/ DEFAULTLIB: “MSVCRTD”
/ DEFAULTLIB: “OLDNAMES”