Boost 1.4.0,“断言”未找到标识符
我正在尝试编译一个最初为 Windows 上的 Linux 编写的旧项目。 它使用 boost 1.4.0,每当我编译时,它都会抛出错误 C3961:“assert”:找不到标识符。我使用的是 Visual Studio 208 SP1 当我深入研究assert.hpp时,它包括:
# include <assert.h> // .h to support old libraries w/o <cassert> - effect is the same
# define BOOST_ASSERT(expr) assert(expr)
BOOST_ASSERT实际上是失败的,并且VS似乎无法识别assert(),即使assert.h显然包含在内。 据我所知,所有失败都在 boost 的一部分文件中,而不是我自己的代码中,但它抛出了大约 1200 个失败。
有什么想法如何解决这个问题吗?
I'm trying to compile an old project that was originally written for linux on windows.
It uses boost 1.4.0, and whenever I compile it throws error C3961: "assert" : identifier not found. I'm using Visual Studio 208 SP1
When I drill down into assert.hpp it includes this:
# include <assert.h> // .h to support old libraries w/o <cassert> - effect is the same
# define BOOST_ASSERT(expr) assert(expr)
BOOST_ASSERT is actually what's failing, and VS doesn't seem to recognize assert() even though assert.h is obviously included.
As far as I can tell, all the fails are in files that are part of boost, not my own code, but it throws about 1200 of them.
Any ideas how to fix this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论