Sign in to follow this  
projectghost

Assimp unresolved externals errors [SOLVED]

Recommended Posts

projectghost    122
I am currently using ASSIMP for importing objs into my software rasterizer project and it builds and compiles just fine on my computer, but as soon as I run it on somebody else's it gives these unresolved externals errors and I don't know how to resolve them :S [QUOTE]3>assimp.lib(BaseImporter.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class std::_String_iterator<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::erase(class std::_String_iterator<char,struct std::char_traits<char>,class std::allocator<char> >)" (__imp_?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AV?$_String_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@V32@@Z) 3>assimp.lib(BaseImporter.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class std::_String_iterator<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::erase(class std::_String_iterator<char,struct std::char_traits<char>,class std::allocator<char> >,class std::_String_iterator<char,struct std::char_traits<char>,class std::allocator<char> >)" (__imp_?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AV?$_String_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@V32@0@Z) 3>assimp.lib(ColladaLoader.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::locale::facet::_Register(void)" (__imp_?_Register@facet@locale@std@@QAEXXZ) 3>assimp.lib(BVHLoader.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::locale::facet::_Register(void)" (__imp_?_Register@facet@locale@std@@QAEXXZ) 3>assimp.lib(ColladaParser.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::locale::facet::_Register(void)" (__imp_?_Register@facet@locale@std@@QAEXXZ) 3>assimp.lib(XFileParser.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::locale::facet::_Register(void)" (__imp_?_Register@facet@locale@std@@QAEXXZ) 3>assimp.lib(ColladaLoader.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned int __cdecl std::ctype<char>::_Getcat(class std::locale::facet const * *)" (__imp_?_Getcat@?$ctype@D@std@@SAIPAPBVfacet@locale@2@@Z) 3>assimp.lib(BVHLoader.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned int __cdecl std::ctype<char>::_Getcat(class std::locale::facet const * *)" (__imp_?_Getcat@?$ctype@D@std@@SAIPAPBVfacet@locale@2@@Z) 3>assimp.lib(ColladaParser.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned int __cdecl std::ctype<char>::_Getcat(class std::locale::facet const * *)" (__imp_?_Getcat@?$ctype@D@std@@SAIPAPBVfacet@locale@2@@Z) 3>assimp.lib(XFileParser.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned int __cdecl std::ctype<char>::_Getcat(class std::locale::facet const * *)" (__imp_?_Getcat@?$ctype@D@std@@SAIPAPBVfacet@locale@2@@Z) [/QUOTE] [Edited by - projectghost on February 11, 2010 7:48:04 PM]

Share this post


Link to post
Share on other sites
Codeka    1239
I assume you're also getting a warning about conflicting runtime libraries (something about "msvcrt")?

You need to make sure you link both assimp and your program with the same runtime library (in your project properties, under "C/C++", "Code Generation" check the "Runtime Library" option - they should be the same - preferably "Muti-threaded Debug DLL" for debug and "Multi-threaded DLL" for release).

Share this post


Link to post
Share on other sites
projectghost    122
Thank you for your input but the shared libraries were present on both machines and all both runtime libraries were the same

but thank you both for your input and the quick replies
still trying to find a solution for this problem

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this