天天看點

關于include<vector>編譯錯誤問題

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.