Errors while Linking

Browc
New member
 
Posts: 1
Joined: Sun Jun 05, 2011 13:37

Errors while Linking

by Browc » Sun Jun 05, 2011 13:39

Hi, I have a problem. When I try to compile Minetest with VC++ 2008, there are some errors when linking.
Code: Select all
1>------ Build started: Project: minetest, Configuration: Debug Win32 ------
1>Linking...
1>environment.obj : error LNK2019: unresolved external symbol "public: __thiscall Oerkki1SAO::Oerkki1SAO(class ServerEnvironment *,unsigned short,class irr::core::vector3d<float>)" (??0Oerkki1SAO@@QAE@PAVServerEnvironment@@GV?$vector3d@M@core@irr@@@Z) referenced in function __catch$?step@ServerEnvironment@@UAEXM@Z$0
1>map.obj : error LNK2001: unresolved external symbol "public: __thiscall Oerkki1SAO::Oerkki1SAO(class ServerEnvironment *,unsigned short,class irr::core::vector3d<float>)" (??0Oerkki1SAO@@QAE@PAVServerEnvironment@@GV?$vector3d@M@core@irr@@@Z)
1>environment.obj : error LNK2019: unresolved external symbol "public: bool __thiscall NodeMetadataList::step(float)" (?step@NodeMetadataList@@QAE_NM@Z) referenced in function __catch$?step@ServerEnvironment@@UAEXM@Z$0
1>map.obj : error LNK2001: unresolved external symbol "public: bool __thiscall NodeMetadataList::step(float)" (?step@NodeMetadataList@@QAE_NM@Z)
1>environment.obj : error LNK2019: unresolved external symbol "public: static class ServerActiveObject * __cdecl ServerActiveObject::create(unsigned char,class ServerEnvironment *,unsigned short,class irr::core::vector3d<float>,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?create@ServerActiveObject@@SAPAV1@EPAVServerEnvironment@@GV?$vector3d@M@core@irr@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "private: void __thiscall ServerEnvironment::activateObjects(class MapBlock *)" (?activateObjects@ServerEnvironment@@AAEXPAVMapBlock@@@Z)
1>environment.obj : error LNK2019: unresolved external symbol "public: static class ClientActiveObject * __cdecl ClientActiveObject::create(unsigned char)" (?create@ClientActiveObject@@SAPAV1@E@Z) referenced in function "public: void __thiscall ClientEnvironment::addActiveObject(unsigned short,unsigned char,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?addActiveObject@ClientEnvironment@@QAEXGEABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>guiInventoryMenu.obj : error LNK2019: unresolved external symbol "enum irr::EKEY_CODE __cdecl getKeySetting(char const *)" (?getKeySetting@@YA?AW4EKEY_CODE@irr@@PBD@Z) referenced in function "public: virtual bool __thiscall GUIInventoryMenu::OnEvent(struct irr::SEvent const &)" (?OnEvent@GUIInventoryMenu@@UAE_NABUSEvent@irr@@@Z)
1>main.obj : error LNK2001: unresolved external symbol "enum irr::EKEY_CODE __cdecl getKeySetting(char const *)" (?getKeySetting@@YA?AW4EKEY_CODE@irr@@PBD@Z)
1>inventory.obj : error LNK2019: unresolved external symbol "public: __thiscall ItemSAO::ItemSAO(class ServerEnvironment *,unsigned short,class irr::core::vector3d<float>,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (??0ItemSAO@@QAE@PAVServerEnvironment@@GV?$vector3d@M@core@irr@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: virtual class ServerActiveObject * __thiscall InventoryItem::createSAO(class ServerEnvironment *,unsigned short,class irr::core::vector3d<float>)" (?createSAO@InventoryItem@@UAEPAVServerActiveObject@@PAVServerEnvironment@@GV?$vector3d@M@core@irr@@@Z)
1>inventory.obj : error LNK2019: unresolved external symbol "public: __thiscall RatSAO::RatSAO(class ServerEnvironment *,unsigned short,class irr::core::vector3d<float>)" (??0RatSAO@@QAE@PAVServerEnvironment@@GV?$vector3d@M@core@irr@@@Z) referenced in function "public: virtual class ServerActiveObject * __thiscall CraftItem::createSAO(class ServerEnvironment *,unsigned short,class irr::core::vector3d<float>)" (?createSAO@CraftItem@@UAEPAVServerActiveObject@@PAVServerEnvironment@@GV?$vector3d@M@core@irr@@@Z)
1>map.obj : error LNK2001: unresolved external symbol "public: __thiscall RatSAO::RatSAO(class ServerEnvironment *,unsigned short,class irr::core::vector3d<float>)" (??0RatSAO@@QAE@PAVServerEnvironment@@GV?$vector3d@M@core@irr@@@Z)
1>main.obj : error LNK2019: unresolved external symbol "void __cdecl the_game(bool &,bool,class InputHandler *,class irr::IrrlichtDevice *,class irr::gui::IGUIFont *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned short,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &)" (?the_game@@YAXAA_N_NPAVInputHandler@@PAVIrrlichtDevice@irr@@PAVIGUIFont@gui@3@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@555GAAV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@7@@Z) referenced in function _main
1>map.obj : error LNK2019: unresolved external symbol "public: class NodeMetadata * __thiscall NodeMetadataList::get(class irr::core::vector3d<short>)" (?get@NodeMetadataList@@QAEPAVNodeMetadata@@V?$vector3d@F@core@irr@@@Z) referenced in function "public: class NodeMetadata * __thiscall Map::getNodeMetadata(class irr::core::vector3d<short>)" (?getNodeMetadata@Map@@QAEPAVNodeMetadata@@V?$vector3d@F@core@irr@@@Z)
1>map.obj : error LNK2019: unresolved external symbol "public: void __thiscall NodeMetadataList::set(class irr::core::vector3d<short>,class NodeMetadata *)" (?set@NodeMetadataList@@QAEXV?$vector3d@F@core@irr@@PAVNodeMetadata@@@Z) referenced in function "public: void __thiscall Map::setNodeMetadata(class irr::core::vector3d<short>,class NodeMetadata *)" (?setNodeMetadata@Map@@QAEXV?$vector3d@F@core@irr@@PAVNodeMetadata@@@Z)
1>map.obj : error LNK2019: unresolved external symbol "public: void __thiscall NodeMetadataList::remove(class irr::core::vector3d<short>)" (?remove@NodeMetadataList@@QAEXV?$vector3d@F@core@irr@@@Z) referenced in function "public: void __thiscall Map::removeNodeMetadata(class irr::core::vector3d<short>)" (?removeNodeMetadata@Map@@QAEXV?$vector3d@F@core@irr@@@Z)
1>mapblock.obj : error LNK2019: unresolved external symbol "public: __thiscall NodeMetadataList::~NodeMetadataList(void)" (??1NodeMetadataList@@QAE@XZ) referenced in function "public: __thiscall MapBlock::~MapBlock(void)" (??1MapBlock@@QAE@XZ)
1>mapblock.obj : error LNK2019: unresolved external symbol "public: void __thiscall NodeMetadataList::serialize(class std::basic_ostream<char,struct std::char_traits<char> > &)" (?serialize@NodeMetadataList@@QAEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z) referenced in function "public: void __thiscall MapBlock::serialize(class std::basic_ostream<char,struct std::char_traits<char> > &,unsigned char)" (?serialize@MapBlock@@QAEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@E@Z)
1>mapblock.obj : error LNK2019: unresolved external symbol "public: void __thiscall NodeMetadataList::deSerialize(class std::basic_istream<char,struct std::char_traits<char> > &)" (?deSerialize@NodeMetadataList@@QAEXAAV?$basic_istream@DU?$char_traits@D@std@@@std@@@Z) referenced in function "public: void __thiscall MapBlock::deSerialize(class std::basic_istream<char,struct std::char_traits<char> > &,unsigned char)" (?deSerialize@MapBlock@@QAEXAAV?$basic_istream@DU?$char_traits@D@std@@@std@@E@Z)
1>mapnode.obj : error LNK2019: unresolved external symbol "public: __thiscall FurnaceNodeMetadata::FurnaceNodeMetadata(void)" (??0FurnaceNodeMetadata@@QAE@XZ) referenced in function "void __cdecl init_mapnode(void)" (?init_mapnode@@YAXXZ)
1>mapnode.obj : error LNK2019: unresolved external symbol "public: __thiscall ChestNodeMetadata::ChestNodeMetadata(void)" (??0ChestNodeMetadata@@QAE@XZ) referenced in function "void __cdecl init_mapnode(void)" (?init_mapnode@@YAXXZ)
1>mapnode.obj : error LNK2019: unresolved external symbol "public: __thiscall SignNodeMetadata::SignNodeMetadata(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (??0SignNodeMetadata@@QAE@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "void __cdecl init_mapnode(void)" (?init_mapnode@@YAXXZ)
1>server.obj : error LNK2019: unresolved external symbol "public: __thiscall AuthManager::~AuthManager(void)" (??1AuthManager@@QAE@XZ) referenced in function __catch$??1Server@@UAE@XZ$0
1>server.obj : error LNK2019: unresolved external symbol "public: __thiscall AuthManager::AuthManager(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0AuthManager@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: __thiscall Server::Server(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (??0Server@@QAE@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>server.obj : error LNK2019: unresolved external symbol "public: void __thiscall AuthManager::save(void)" (?save@AuthManager@@QAEXXZ) referenced in function "public: void __thiscall Server::AsyncRunStep(void)" (?AsyncRunStep@Server@@QAEXXZ)
1>server.obj : error LNK2019: unresolved external symbol "public: bool __thiscall AuthManager::isModified(void)" (?isModified@AuthManager@@QAE_NXZ) referenced in function "public: void __thiscall Server::AsyncRunStep(void)" (?AsyncRunStep@Server@@QAEXXZ)
1>server.obj : error LNK2019: unresolved external symbol "class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > __cdecl processServerCommand(struct ServerCommandContext *)" (?processServerCommand@@YA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@PAUServerCommandContext@@@Z) referenced in function __catch$?ProcessData@Server@@QAEXPAEIG@Z$0
1>server.obj : error LNK2019: unresolved external symbol "public: void __thiscall AuthManager::setPrivs(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned __int64)" (?setPrivs@AuthManager@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_K@Z) referenced in function __catch$?ProcessData@Server@@QAEXPAEIG@Z$0
1>server.obj : error LNK2019: unresolved external symbol "unsigned __int64 __cdecl stringToPrivs(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?stringToPrivs@@YA_KV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function __catch$?ProcessData@Server@@QAEXPAEIG@Z$0
1>server.obj : error LNK2019: unresolved external symbol "public: void __thiscall AuthManager::setPassword(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?setPassword@AuthManager@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z) referenced in function __catch$?ProcessData@Server@@QAEXPAEIG@Z$0
1>server.obj : error LNK2019: unresolved external symbol "public: void __thiscall AuthManager::add(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?add@AuthManager@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function __catch$?ProcessData@Server@@QAEXPAEIG@Z$0
1>server.obj : error LNK2019: unresolved external symbol "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall AuthManager::getPassword(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?getPassword@AuthManager@@QAE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV23@@Z) referenced in function __catch$?ProcessData@Server@@QAEXPAEIG@Z$0
1>server.obj : error LNK2019: unresolved external symbol "public: bool __thiscall AuthManager::exists(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?exists@AuthManager@@QAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function __catch$?ProcessData@Server@@QAEXPAEIG@Z$0
1>server.obj : error LNK2019: unresolved external symbol "public: unsigned __int64 __thiscall AuthManager::getPrivs(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?getPrivs@AuthManager@@QAE_KABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: unsigned __int64 __thiscall Server::getPlayerAuthPrivs(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?getPlayerAuthPrivs@Server@@QAE_KABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>utility.obj : error LNK2019: unresolved external symbol "public: __thiscall SHA1::~SHA1(void)" (??1SHA1@@QAE@XZ) referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl translatePassword(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >)" (?translatePassword@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@@Z)
1>utility.obj : error LNK2019: unresolved external symbol "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl base64_encode(unsigned char const *,unsigned int)" (?base64_encode@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PBEI@Z) referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl translatePassword(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >)" (?translatePassword@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@@Z)
1>utility.obj : error LNK2019: unresolved external symbol "public: unsigned char * __thiscall SHA1::getDigest(void)" (?getDigest@SHA1@@QAEPAEXZ) referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl translatePassword(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >)" (?translatePassword@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@@Z)
1>utility.obj : error LNK2019: unresolved external symbol "public: void __thiscall SHA1::addBytes(char const *,int)" (?addBytes@SHA1@@QAEXPBDH@Z) referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl translatePassword(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >)" (?translatePassword@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@@Z)
1>utility.obj : error LNK2019: unresolved external symbol "public: __thiscall SHA1::SHA1(void)" (??0SHA1@@QAE@XZ) referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl translatePassword(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >)" (?translatePassword@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@@Z)
1>C:\Documents and Settings\Browc\Desktop\minetest\minetest-0.2.20110602_0-win32\celeron55-minetest-0c46009356b5\\bin\minetest.exe : fatal error LNK1120: 34 unresolved externals
1>Build log was saved at "file://c:\Documents and Settings\Browc\Desktop\minetest\minetest-0.2.20110602_0-win32\celeron55-minetest-0c46009356b5\Debug\BuildLog.htm"
1>minetest - 39 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

How can I fix that?
 

celeron55
Administrator
 
Posts: 454
Joined: Tue Apr 19, 2011 10:10
GitHub: celeron55
IRC: celeron55

by celeron55 » Sun Jun 05, 2011 19:49

Let me guess: You didn't use CMake nor read the README.txt.
 


Return to Problems



Who is online

Users browsing this forum: No registered users and 1 guest