错误C2039:'WaitForSingleObject'不是'boost :: detail :: win32'的成员

时间:2016-07-30 09:30:18

标签: c++ mongodb winapi boost visual-studio-2013

我正在尝试安装c ++ mongo驱动程序但是当我尝试使用scons构建它时,我收到以下错误\ util \ concurrency \ shared_mutex_win.hpp(180):错误C2039:'WaitForSingleObject'不是'的成员'提高::详细:: win32' 的。 请帮我解决问题。我已将windows.h标头包含在所需位置,但尚未正常工作。我正在运行Windows 8.1 x64,Visual Studio 2013 ultimate。

The command prompt screen shot of the build

1 个答案:

答案 0 :(得分:0)

感谢fixEd它删除了与shared_mutex_win.hpp文件中的线程方法调用一起使用的范围解析运算符。也就是说,boost :: detail :: WaitForSingleObject变为WaitForSingleObject,boost :: detail :: WaithForMultipleObjects变为WaithForMultipleObjects。 我希望这会有所帮助。