我正在尝试用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-path
我尝试使用cxxflags="/Y-“,因为我得到了其他过期的PDB错误,这并没有改变任何事情。我已经尝试设置了Zm100,同样没有变化。
当它到达gregorian部分时,我得到了一些失败,如下所示
编译bin.v2\libs\date_time\build\msvc-11.0\debug\debug-store-database\threading-multi bin.v2\libs\date_time\build\msvc-11.0\debug\debug-store-database\threading-multi\gregorian -c-c++ bin.v2\libs\date_time\build\msvc-11.0\debug\debug-store-database\threading-multi\gregorian\greg_month.obj common.mkdir 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 >nulcl /Zm800 -nologo @"bin.v2\libs\date_time\build\msvc-11.0\debug\debug-store-database\threading-multi\gregorian\greg_month.obj.rsp“
发布于 2012-11-21 05:48:15
问题是,构建试图将date_time库的一些目标文件的.pdb文件放在一个不存在的目录中。
您可以通过执行以下操作来解决此问题:
md gregorian在执行构建之前,请确保该目录存在。
我还不确定真正的修复方法是什么,因为boost构建系统对我来说或多或少是一个黑盒。
https://stackoverflow.com/questions/13462388
复制相似问题