我正在尝试使用VS2012构建Boost 1_52库。除了Date Time dll(boost_date_time-vc110-mt-1_52.dll)之外,一切正常。
我使用的是B2.exe,如下所示 b2.exe toolset = msvc-11.0 --build-type = complete stage debug-symbols = on debug-store = database --abbreviate-paths
我尝试过使用cxxflags =" / Y-"因为我得到了其他过时的PDB错误,这并没有改变任何东西。我尝试过设置Zm100,再没有变化。
当它到达格里高利区时,我会遇到一些失败,如下所示
common.mkdir bin.v2 \ libs \ date_time \ build \ msvc-11.0 \ debug \ debug-store-database \ threading-multi common.mkdir bin.v2 \ libs \ date_time \ build \ msvc-11.0 \ debug \ debug-store-database \ threading-multi \ gregorian compile-c-c ++ bin.v2 \ libs \ date_time \ build \ msvc-11.0 \ debug \ debug-store-database \ threading-multi \ gregorian \ greg_month.obj greg_month.cpp libs \ date_time \ src \ gregorian \ greg_month.cpp:致命错误C1033:无法打开程序数据库' d:\ boost \ source \ boost_1_52_0 \ gregorian \ greg_month.pdb'
call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86 >nul
cl / Zm800 -nologo @" bin.v2 \ libs \ date_time \ build \ msvc-11.0 \ debug \ debug-store-database \ threading-multi \ gregorian \ greg_month.obj.rsp"
答案 0 :(得分:1)
问题是构建试图将date_time
库的某些目标文件的.pdb文件放在不存在的目录中。
您可以通过以下方式解决问题:
md gregorian
在执行构建之前,目录存在。
我还不确定真正的修复是什么,因为boost构建系统对我来说或多或少是一个黑盒子。