Jump to content

Unresolved Externals


Guest lillecarl

Recommended Posts

Hello, i would love to get some help with "unresolved externals" and i don't know anything about what it is and how to solve it.

Anyways i have this unresolved externals in a script i have written

4>sc_default.obj : error LNK2019: unresolved external symbol "private: __thiscall Log::Log(void)" (??0Log@@AAE@XZ) referenced in function "public: static class Log * __cdecl MaNGOS::OperatorNew<class Log>::Create(void)" (?Create@?$OperatorNew@VLog@@@MaNGOS@@SAPAVLog@@XZ)
4>sc_default.obj : error LNK2019: unresolved external symbol "private: static bool MaNGOS::Singleton<class Log,class MaNGOS::SingleThreaded<class Log>,class MaNGOS::OperatorNew<class Log>,class MaNGOS::ObjectLifeTime<class Log> >::si_destroyed" (?si_destroyed@?$Singleton@VLog@@V?$SingleThreaded@VLog@@@MaNGOS@@V?$OperatorNew@VLog@@@3@V?$ObjectLifeTime@VLog@@@3@@MaNGOS@@0_NA) referenced in function "private: static void __cdecl MaNGOS::Singleton<class Log,class MaNGOS::SingleThreaded<class Log>,class MaNGOS::OperatorNew<class Log>,class MaNGOS::ObjectLifeTime<class Log> >::DestroySingleton(void)" (?DestroySingleton@?$Singleton@VLog@@V?$SingleThreaded@VLog@@@MaNGOS@@V?$OperatorNew@VLog@@@3@V?$ObjectLifeTime@VLog@@@3@@MaNGOS@@CAXXZ)
4>sc_default.obj : error LNK2019: unresolved external symbol "private: static class Log * MaNGOS::Singleton<class Log,class MaNGOS::SingleThreaded<class Log>,class MaNGOS::OperatorNew<class Log>,class MaNGOS::ObjectLifeTime<class Log> >::si_instance" (?si_instance@?$Singleton@VLog@@V?$SingleThreaded@VLog@@@MaNGOS@@V?$OperatorNew@VLog@@@3@V?$ObjectLifeTime@VLog@@@3@@MaNGOS@@0PAVLog@@A) referenced in function "private: static void __cdecl MaNGOS::Singleton<class Log,class MaNGOS::SingleThreaded<class Log>,class MaNGOS::OperatorNew<class Log>,class MaNGOS::ObjectLifeTime<class Log> >::DestroySingleton(void)" (?DestroySingleton@?$Singleton@VLog@@V?$SingleThreaded@VLog@@@MaNGOS@@V?$OperatorNew@VLog@@@3@V?$ObjectLifeTime@VLog@@@3@@MaNGOS@@CAXXZ)
4>sc_default.obj : error LNK2019: unresolved external symbol "public: int __thiscall ReputationMgr::GetReputation(unsigned int)const " (?GetReputation@ReputationMgr@@QBEHI@Z) referenced in function "bool __cdecl OnItemBuy(class Creature *,class Player *,unsigned int)" (?OnItemBuy@@YA_NPAVCreature@@PAVPlayer@@I@Z)
4>sc_default.obj : error LNK2019: unresolved external symbol "public: void __cdecl Log::outErrorDb(char const *,...)" (?outErrorDb@Log@@QAAXPBDZZ) referenced in function "bool __cdecl OnItemBuy(class Creature *,class Player *,unsigned int)" (?OnItemBuy@@YA_NPAVCreature@@PAVPlayer@@I@Z)
4>sc_default.obj : error LNK2019: unresolved external symbol "class DatabaseMysql WorldDatabase" (?WorldDatabase@@3VDatabaseMysql@@A) referenced in function "bool __cdecl OnItemBuy(class Creature *,class Player *,unsigned int)" (?OnItemBuy@@YA_NPAVCreature@@PAVPlayer@@I@Z)
4>C:\\Development\\one\\build\\src\\bindings\\universal\\Release\\mangosscript.dll : fatal error LNK1120: 6 unresolved externals

http://lillecarl.ath.cx/paste/index.php/view/3769067

This is the script i have, i have just enabled the mangosscript system (src/bindings/universal) and using the sc_default.cpp

http://lillecarl.ath.cx/paste/index.php/view/73747737

If you need any more information to solve this problem (and so i can learn how to deal with unresolved externals) just comment

PS: The "onitembuy" code is leaking memory and getting segmentation fault but ill take that another time ;)

Link to comment
Share on other sites

src/bindings/universal possible not build in current sources, it has been broken in time when it made optional and not updated carefully. mangosd not need for own start now any script lib, but ofc related scripting code will not available in it then. But src/bindings/universal not have any useful scripting.

Link to comment
Share on other sites

src/bindings/universal possible not build in current sources, it has been broken in time when it made optional and not updated carefully. mangosd not need for own start now any script lib, but ofc related scripting code will not available in it then. But src/bindings/universal not have any useful scripting.

Not even if i add my own hooks to it?

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use