c++每次用map头文件时,都会报错

每次用map的头文件时,都会如下报错,应该是头文件自身问题吧,因为路径都在c++目录下,是不是这个文件损坏了?别头文件都还可以用c:\programfiles\micro... 每次用map的头文件时,都会如下报错,应该是头文件自身问题吧,因为路径都在c++目录下,是不是这个文件损坏了?别头文件都还可以用
c:\program files\microsoft visual studio\vc98\include\map(21) : error C2504: '_CONTAINER_BASE_AUX_ALLOC' : base class undefined
c:\program files\microsoft visual studio\vc98\include\map(69) : see reference to class template instantiation 'std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,_Mfl>' being compiled
c:\program files\microsoft visual studio\vc98\include\map(21) : error C2143: syntax error : missing ',' before '<'
c:\program files\microsoft visual studio\vc98\include\map(69) : see reference to class template instantiation 'std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,_Mfl>' being compiled
c:\program files\microsoft visual studio\vc98\include\map(21) : error C2059: syntax error : '<'
c:\program files\microsoft visual studio\vc98\include\map(69) : see reference to class template instantiation 'std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,_Mfl>' being compiled
c:\program files\microsoft visual studio\vc98\include\map(27) : error C2903: 'rebind' : symbol is neither a class template nor a function template
c:\program files\microsoft visual studio\vc98\include\map(69) : see reference to class template instantiation 'std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,_Mfl>' being compiled
c:\program files\microsoft visual studio\vc98\include\map(27) : error C2059: syntax error : '<'
c:\program files\microsoft visual studio\vc98\include\map(69) : see reference to class template instantiation 'std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,_Mfl>' being compiled
c:\program files\microsoft visual studio\vc98\include\map(27) : error C2039: 'other' : is not a member of '`global namespace''
c:\program files\microsoft visual studio\vc98\include\map(69) : see reference to class template instantiation 'std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,_Mfl>' being compiled
c:\program files\microsoft visual studio\vc98\include\map(28) : error C2238: unexpected token(s) preceding ';'
c:\program files\microsoft visual studio\vc98\include\map(69) : see reference to class template instantiation 'std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,_Mfl>' being compiled
c:\program files\microsoft visual studio\vc98\include\map(30) : error C2653: 'allocator_type' : is not a class or namespace name

字数限制,还有很多,望得到解决方法
展开
 我来答
heresy_me
2012-01-20 · TA获得超过1719个赞
知道小有建树答主
回答量:1708
采纳率:42%
帮助的人:304万
展开全部
你是#include<map>而即使没有用都会错,还是用了std::map之后才有错?
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式