读书人

小弟我在使用stl的时候出现string_wor

发布时间: 2012-02-14 19:19:19 作者: rapoo

我在使用stl的时候出现string_workaround.h(28) : error C2629: unexpected 'class stlp_std::p
我在使用stl的时候出现string_workaround.h(28) : error C2629: unexpected 'class stlp_std::priv::_STLP_NON_DBG_NAME ('
错误 不知那位知道什么原因, 谢谢

错误内容:
_string_workaround.h(28) : error C2629: unexpected 'class stlp_std::priv::_STLP_NON_DBG_NAME ('

c:\stlport-5.2.1\stlport\stl\_string_workaround.h(28) : error C2059: syntax error : 'public'

c:\stlport-5.2.1\stlport\stl\_string_workaround.h(28) : error C2065: '_CharT' : undeclared identifier

c:\stlport-5.2.1\stlport\stl\_string_workaround.h(28) : error C2065: '_Traits' : undeclared identifier

c:\stlport-5.2.1\stlport\stl\_string_workaround.h(28) : error C2065: '_Alloc' : undeclared identifier

c:\stlport-5.2.1\stlport\stl\_string_workaround.h(32) : error C2143: syntax error : missing ';' before '{'

c:\stlport-5.2.1\stlport\stl\_string_workaround.h(32) : error C2447: missing function header (old-style formal list?)c:\stlport-5.2.1\stlport\stl\debug\_string.h(793) : see reference to class template instantiation 'stlp_std::basic_string<_CharT,_Traits,_Alloc>' being compiled

c:\stlport-5.2.1\stlport\stl\debug\_string.h(54) : error C2039: '_STLP_NON_DBG_NAME' : is not a member of 'priv'

c:\stlport-5.2.1\stlport\stl\debug\_string.h(793) : see reference to class template instantiation 'stlp_std::basic_string<_CharT,_Traits,_Alloc>' being compiled

c:\stlport-5.2.1\stlport\stl\debug\_string.h(54) : error C2061: syntax error : identifier 'str'

c:\stlport-5.2.1\stlport\stl\debug\_string.h(793) : see reference to class template instantiation 'stlp_std::basic_string<_CharT,_Traits,_Alloc>' being compiled

c:\stlport-5.2.1\stlport\stl\debug\_string.h(54) : error C2143: syntax error : missing ';' before '<'

c:\stlport-5.2.1\stlport\stl\debug\_string.h(793) : see reference to class template instantiation 'stlp_std::basic_string<_CharT,_Traits,_Alloc>' being compiled

c:\stlport-5.2.1\stlport\stl\debug\_string.h(54) : error C2059: syntax error : '<'

c:\stlport-5.2.1\stlport\stl\debug\_string.h(793) : see reference to class template instantiation 'stlp_std::basic_string<_CharT,_Traits,_Alloc>' being compiled

c:\stlport-5.2.1\stlport\stl\debug\_string.h(54) : error C2238: unexpected token(s) preceding ';'

c:\stlport-5.2.1\stlport\stl\debug\_string.h(793) : see reference to class template instantiation 'stlp_std::basic_string<_CharT,_Traits,_Alloc>' being compiled

c:\stlport-5.2.1\stlport\stl\debug\_string.h(56) : error C2039: '_STLP_NON_DBG_NAME' : is not a member of 'priv'

c:\stlport-5.2.1\stlport\stl\debug\_string.h(793) : see reference to class template instantiation 'stlp_std::basic_string<_CharT,_Traits,_Alloc>' being compiled

c:\stlport-5.2.1\stlport\stl\debug\_string.h(56) : error C2440: 'type cast' : cannot convert from 'int' to 'int (void)'

There are no conversions to function types, although there are conversions to references or pointers to functions



[解决办法]
贴代码
[解决办法]
Configuring Visual C++ directory paths
To build Ice applications with Visual C++, you must configure Visual C++'s directory paths. In the Tools menu, choose Options, and select Projects and Solutions. You can change the directories that Visual C++ searches in the VC++ Directories category. (You need to perform this step only once.)

http://www.zeroc.com/faq/visualStudio.html

读书人网 >C++

热点推荐