是个OpenGL项目,我没改程序,但是从VS2008转到VS2010后就出现大批库函数链接错误。我把2010装到了和2008不同的盘上,并且先删的2008后装的2010,另外还改了下系统语言。清了再重编译也不行,可能是什么原因?
1>------ Build started: Project: GLWindow, Configuration: Release Win32 ------
1> _Entry.cpp
1>e:\programming\ab3d\engine\header\GLObject.h(52): warning C4800: 'GLboolean' : forcing value to bool 'true' or 'false' (performance warning)
1>e:\programming\ab3d\engine\header\GLObject.h(155): warning C4800: 'GLboolean' : forcing value to bool 'true' or 'false' (performance warning)
1>e:\programming\ab3d\engine\header\CgObject.h(43): warning C4800: 'CGbool' : forcing value to bool 'true' or 'false' (performance warning)
1>e:\programming\ab3d\engine\header\CgObject.h(51): warning C4800: 'CGbool' : forcing value to bool 'true' or 'false' (performance warning)
1>e:\programming\ab3d\engine\header\CgObject.h(79): warning C4800: 'CGbool' : forcing value to bool 'true' or 'false' (performance warning)
1>_Entry.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) __int64 const std::_BADOFF" (__imp_?_BADOFF@std@@3_JB)
1>_Entry.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xout_of_range(char const *)" (__imp_?_Xout_of_range@std@@YAXPBD@Z)
1>_Entry.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xlength_error(char const *)" (__imp_?_Xlength_error@std@@YAXPBD@Z)
1>_Entry.obj : error LNK2001: unresolved external symbol "private: static void __cdecl std::locale::facet::_Facet_Register(class std::locale::facet *)" (?_Facet_Register@facet@locale@std@@CAXPAV123@@Z)
1>_Entry.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __int64 __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::sputn(char const *,__int64)" (__imp_?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE_JPBD_J@Z)
1>_Entry.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class std::basic_istream<char,struct std::char_traits<char> > & __thiscall std::basic_istream<char,struct std::char_traits<char> >::read(char *,__int64)" (__imp_?read@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PAD_J@Z)
1>_Entry.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual class std::basic_streambuf<char,struct std::char_traits<char> > * __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::setbuf(char *,__int64)" (__imp_?setbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEPAV12@PAD_J@Z)
1>_Entry.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual __int64 __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::xsputn(char const *,__int64)" (__imp_?xsputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE_JPBD_J@Z)
1>_Entry.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual __int64 __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::xsgetn(char *,__int64)" (__imp_?xsgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE_JPAD_J@Z)
1>_Entry.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual __int64 __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::showmanyc(void)" (__imp_?showmanyc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE_JXZ)
1>_Entry.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::_Unlock(void)" (__imp_?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@UAEXXZ)
1>_Entry.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::_Lock(void)" (__imp_?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@UAEXXZ)
1>_Entry.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __int64 __thiscall std::ios_base::width(__int64)" (__imp_?width@ios_base@std@@QAE_J_J@Z)
1>_Entry.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __int64 __thiscall std::ios_base::width(void)const " (__imp_?width@ios_base@std@@QBE_JXZ)
1>E:\Programming\AB3D\bin\GLWindow.exe : fatal error LNK1120: 14 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
本文由VS软件圈(vssoft.net)发布,不代表VS软件圈立场,转载联系作者并注明出处:https://vssoft.net/vsazwt/VS2010anzhuangwenti/2020/0724/2636.html