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
字数限制,还有很多,望得到解决方法 展开
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
字数限制,还有很多,望得到解决方法 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询