错误提示如下:
Error 1 error C2143: syntax error : missing ';' before '<'
d:\work\hcjy_dma\src\cvs2dat\datfile.h 35 cvs2dat
有人说这是VC的一个BUG,都2008了,是BUG也该改了呀
有人说:
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
把#include <vector>放在这几句前面
也不管用,其实很简单,是因为:
用标准库就要加上
#include <vector>
using namespace std;
疏忽,疏忽... :-(
~~The END~~
尹曙光
Error 1 error C2143: syntax error : missing ';' before '<'
d:\work\hcjy_dma\src\cvs2dat\datfile.h 35 cvs2dat
有人说这是VC的一个BUG,都2008了,是BUG也该改了呀
有人说:
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
把#include <vector>放在这几句前面
也不管用,其实很简单,是因为:
用标准库就要加上
#include <vector>
using namespace std;
疏忽,疏忽... :-(
~~The END~~
尹曙光
解决VC编译器错误C2143
本文解决了VC编译器中出现的错误C2143,指出了解决这一问题的方法:确保使用标准库时包含了必要的头文件,并正确地声明了命名空间std。文章提到错误提示出现在datfile.h文件的第35行。
2968

被折叠的 条评论
为什么被折叠?



