关于include<vector>编译错误问题

论坛 期权论坛 编程之家     
选择匿名的用户   2021-6-2 17:12   1652   0

One of your header files is almost certainly including:

#include <vector>

Before that line, add:

#undef max

And I believe your compiles will start working. This is happening b/c you are also using the C std library, which for some functions uses macros, and in this case, causes the preprocessor to freak out. I've seen this same error on Linux, and undefining that symbol was all i needed to get things compiling again.


分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP