VS 6到VS 2010转换-链接错误 [英] VS 6 to VS 2010 Conversion - Link Error
问题描述
我正在将项目从Visual Studio 6转换为VS 2010,并且重载了函数os<< m_pos;
给出以下链接错误:
错误LNK2019:未解析的外部符号"class std :: basic_ostream< char,struct>& __cdecl运算符<<(class std :: basic_ostream< char,struct>>& ;, class CVector< class>> const &)(在引用中引用了6 @ YAAAV?$ basic_ostream @ DU?$ char_traits @ D @ std @@@ std @@ AAV01 @ ABV?$ CVector @ V?$ C1dArray_of_numbers @ M @@@@@ Z函数"public:int __thiscall CRestart_file_header :: Write(class std :: basic_ostream< char,struct>&))"(?Write @ CRestart_file_header @@ QAEHAAV?$ basic_ostream @ DU?$ char_traits @ D @ std @@@ std @@@ Z)
我想我缺少一些图书馆.有什么想法吗?
我有一个小项目,显示可以上传的代码,但是我要怎么做.
任何帮助将不胜感激.
谢谢.
Scott
I am converting a project from Visual Studio 6 to VS 2010, and the overloaded function: os << m_pos;
gives the following link error:
error LNK2019: unresolved external symbol "class std::basic_ostream<char,struct> > & __cdecl operator<<(class std::basic_ostream<char,struct> > &,class CVector<class> > const &)" (??6@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV01@ABV?$CVector@V?$C1dArray_of_numbers@M@@@@@Z) referenced in function "public: int __thiscall CRestart_file_header::Write(class std::basic_ostream<char,struct> > &)" (?Write@CRestart_file_header@@QAEHAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z)
I am guessing I am missing some library. Any ideas?
I have a small project that shows the code that I could upload, but I am how to do that.
Any help would be greatly appreciated.
Thank you.
Scott
推荐答案
basic_ostream @ DU?
basic_ostream@DU?
char_traits @ D @ std @@@ std @@ AAV01 @ ABV?
char_traits@D@std@@@std@@AAV01@ABV?
CVector @ V?
CVector@V?
这篇关于VS 6到VS 2010转换-链接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!