我正在编译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) Error 226 error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl std::operator==,class std::分配器 >(类 std::basic_string,类 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) Error 227 error LNK2001: unresolved external符号“__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) Error 228 error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl std::operator==,类 std::allocator >(类 std::basic_string,类 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,class 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,class std ::分配器 > 常量 &)"(__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) Error 232 error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl std::operator==,class std::allocator >(类 std::basic_string,类 std::allocator > const &,类 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) Error 233 error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl std::operator==,class std::allocator >(class std::basic_string,class std::allocator > const &,类 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(节点.obj)(__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)(__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
我希望有人可以帮助我解决这个问题我真的需要这个工具来学习。