开发者

Boost 1.4.0, "assert" identifier not found

开发者 https://www.devze.com 2022-12-24 19:26 出处:网络
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 fo

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消