我正在尝试使用 VS2012 构建 Boost 1_52 库。除了日期时间 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 编译-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 : fatal error 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"
最佳答案
问题是构建试图将 date_time
库的某些目标文件的 .pdb 文件放在不存在的目录中。
您可以通过以下方式解决此问题:
md gregorian
在执行构建之前使目录存在。
我不确定真正的解决方法是什么,因为 boost 构建系统对我来说或多或少是一个黑盒子。
关于c++ - Boost 1_52 构建 VS2012 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13462388/