【发布时间】:2015-02-13 23:14:58
【问题描述】:
我正在编译artoolkit 库,以便可以在我的项目中使用它。可以编译artoolkit(http://sourceforge.net/projects/artoolkit/files/artoolkit/2.72.1/)上的所有 28 个项目,但我在编译使用 openVRML 库(也在同一个链接中)的 simpleVRML 项目时遇到问题,它总是有一个看起来像这样的错误:
错误 225 错误 LNK2019: 无法解析的外部符号 "__declspec(dllimport) bool __cdecl std::operator==,class std::allocator >(class std::basic_string,class std::allocator > const &,char const * )" (__imp_??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator @D@2@@0@PBD@Z) 在函数 __ehhandler$??0sentry@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@AAV12@@ZC:\Users\John Paulo\Documents\Photorealistic Rendering\Prototype\MK-1.1.2\examples\simpleVRML\antlr.lib(Parser.obj) 错误 226 错误 LNK2001:无法解析的外部符号“__declspec(dllimport) bool __cdecl std::operator==,class std::allocator >(class std::basic_string,class std::allocator > const &,char const *)”( __imp_??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@ 2@@0@PBD@Z) C:\Users\John Paulo\Documents\Photorealistic Rendering\Prototype\MK-1.1.2\examples\simpleVRML\openvrml.lib(browser.obj) 错误 227 错误 LNK2001:无法解析的外部符号“__declspec(dllimport) bool __cdecl std::operator==,class std::allocator >(class std::basic_string,class std::allocator > const &,char const *)”( __imp_??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@ 2@@0@PBD@Z) C:\Users\John Paulo\Documents\Photorealistic Rendering\Prototype\MK-1.1.2\examples\simpleVRML\openvrml.lib(script.obj) 错误 228 错误 LNK2001:无法解析的外部符号“__declspec(dllimport) bool __cdecl std::operator==,class std::allocator >(class std::basic_string,class std::allocator > const &,char const *)”( __imp_??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@ 2@@0@PBD@Z) C:\Users\John Paulo\Documents\Photorealistic Rendering\Prototype\MK-1.1.2\examples\simpleVRML\openvrml.lib(vrml97node.obj) 错误 229 错误 LNK2001:无法解析的外部符号“__declspec(dllimport) bool __cdecl std::operator==,class std::allocator >(class std::basic_string,class std::allocator > const &,char const *)”( __imp_??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@ 2@@0@PBD@Z) C:\Users\John Paulo\Documents\Photorealistic Rendering\Prototype\MK-1.1.2\examples\simpleVRML\openvrml.lib(doc.obj) 错误 230 错误 LNK2001: 无法解析的外部符号 "__declspec(dllimport) bool __cdecl std::operator==,class std::allocator >(class std::basic_string,class std::allocator > const &,class std::basic_string,类 std::allocator > const &)" (__imp_??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D @std@@V?$allocator@D@2@@0@0@Z) C:\Users\John Paulo\Documents\Photorealistic Rendering\Prototype\MK-1.1.2\examples\simpleVRML\openvrml.lib(doc .obj) 错误 231 错误 LNK2019: 无法解析的外部符号 "__declspec(dllimport) bool __cdecl std::operator==,class std::allocator >(class std::basic_string,class std::allocator > const &,class std::basic_string,类 std::allocator > const &)" (__imp_??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D @std@@V?$allocator@D@2@@0@0@Z) 在函数 "public: __thiscall antlr::BaseAST::BaseAST(void)" (??0BaseAST@antlr@@QAE@XZ) 中引用C:\Users\John Paulo\Documents\Photorealistic Rendering\Prototype\MK-1.1.2\examples\simpleVRML\antlr.lib(BaseAST.obj) 错误 232 错误 LNK2001: 无法解析的外部符号 "__declspec(dllimport) bool __cdecl std::operator==,class std::allocator >(class std::basic_string,class std::allocator > const &,class std::basic_string,类 std::allocator > const &)" (__imp_??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D @std@@V?$allocator@D@2@@0@0@Z) C:\Users\John Paulo\Documents\Photorealistic Rendering\Prototype\MK-1.1.2\examples\simpleVRML\openvrml.lib(browser .obj) 错误 233 错误 LNK2001: 无法解析的外部符号 "__declspec(dllimport) bool __cdecl std::operator==,class std::allocator >(class std::basic_string,class std::allocator > const &,class std::basic_string,类 std::allocator > const &)" (__imp_??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D @std@@V?$allocator@D@2@@0@0@Z) C:\Users\John Paulo\Documents\Photorealistic Rendering\Prototype\MK-1.1.2\examples\simpleVRML\openvrml.lib(node .obj)
这是我在编译 simpleVRML 项目时遇到的所有错误的捕获图像(请忽略 GLObjViewer 项目)。 https://drive.google.com/file/d/0B6bkSbCQZ46zY3BpMjY2NmN2cTA/view?usp=sharing
希望有人能帮我解决这个问题,我真的很需要这个工具来学习。
【问题讨论】: