include vector 报错,请帮忙
我定义了个控制台项目,在main.cpp中#include<vector>没问题
然后,自己写了一个类t1.h然后在main中include“t1.h”.
如果在t1.h中再#include<vector>就开始报错,我把main.cpp中的#include<vector>删掉也不行。
main 和 t1里面就个大括号,没写代码呢。
帮忙谢谢阿
报错类似于
1>main.cpp
1>d:\program files\microsoft visual studio 8\vc\include\xutility(1023) : error C2059: syntax error : ','
1> d:\program files\microsoft visual studio 8\vc\include\xutility(1026) : see reference to class template instantiation 'std::_Ptr_cat_helper<<unnamed-symbol>,_T2>' being compiled
1>d:\program files\microsoft visual studio 8\vc\include\xutility(1024) : error C2976: 'std::_Checked_iterator_category' : too few template arguments
1> d:\program files\microsoft visual studio 8\vc\include\xutility(874) : see declaration of 'std::_Checked_iterator_category'
1>d:\program files\microsoft visual studio 8\vc\include\xutility(1025) : error C2976: 'std::_Ptr_cat_with_checked_cat_helper' : too few template arguments
1> d:\program files\microsoft visual studio 8\vc\include\xutility(1018) : see declaration of 'std::_Ptr_cat_with_checked_cat_helper'
..............
..............
t1.cpp
1>d:\program files\microsoft visual studio 8\vc\include\xutility(1023) : error C2059: syntax error : ','
..........
.........