• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling Errors while compiling.

Tommy93

New Member
Joined
Feb 18, 2012
Messages
8
Reaction score
2
Hello!

I have downloaded engine from that topic: [10.90] GlobalOT - FULL + NEW WWW + NEW LAYOUT + Krailos [TFS 1.2]

When im try to compile it i got these errors:

Code:
1>commands.obj : error LNK2001: unresolved external symbol "public: bool __cdecl Store::reload(void)" (?reload@Store@@QEAA_NXZ)
1>game.obj : error LNK2001: unresolved external symbol "public: class boost::optional<class StoreOffer &> __cdecl Store::getOfferById(unsigned int)" (?getOfferById@Store@@QEAA?AV?$optional@AEAVStoreOffer@@@boost@@I@Z)
1>game.obj : error LNK2001: unresolved external symbol "public: static unsigned int __cdecl IOAccount::getCoinBalance(unsigned int)" (?getCoinBalance@IOAccount@@SAII@Z)
1>game.obj : error LNK2001: unresolved external symbol "public: bool __cdecl Store::executeOnBuy(class Player *,class StoreOffer *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?executeOnBuy@Store@@QEAA_NPEAVPlayer@@PEAVStoreOffer@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>game.obj : error LNK2001: unresolved external symbol "public: static void __cdecl IOAccount::addCoins(unsigned int,int)" (?addCoins@IOAccount@@SAXIH@Z)
1>game.obj : error LNK2001: unresolved external symbol "public: void __cdecl Store::onTransactionCompleted(unsigned int,int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (?onTransactionCompleted@Store@@QEBAXIHAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>protocolgame.obj : error LNK2001: unresolved external symbol "public: bool __cdecl Store::executeOnRender(class Player *,class StoreOffer *)" (?executeOnRender@Store@@QEAA_NPEAVPlayer@@PEAVStoreOffer@@@Z)
1>protocolgame.obj : error LNK2001: unresolved external symbol "public: void __cdecl Store::getTransactionHistory(unsigned int,unsigned short,unsigned int,class std::vector<struct StoreTransaction,class std::allocator<struct StoreTransaction> > &)const " (?getTransactionHistory@Store@@QEBAXIGIAEAV?$vector@UStoreTransaction@@V?$allocator@UStoreTransaction@@@std@@@std@@@Z)
1>scriptmanager.obj : error LNK2001: unresolved external symbol "public: __cdecl Store::Store(void)" (??0Store@@QEAA@XZ)
1>scriptmanager.obj : error LNK2001: unresolved external symbol "public: bool __cdecl Store::loadFromXml(bool)" (?loadFromXml@Store@@QEAA_N_N@Z)
1>C:\Users\Tomek\Downloads\ots\Global10.90\vc14\x64\Release\theforgottenserver.exe : fatal error LNK1120: 10 unresolved externals
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

I was trying to compile it on Visual 2013, 2015, 2017 and always i get the same errors. I'm using TFS-SDK 3.2 and Boost 1.62.0.

Can anyone help me? Or maybe someone got it compiled on version x64?
 
Solution
Hello!

I have downloaded engine from that topic: [10.90] GlobalOT - FULL + NEW WWW + NEW LAYOUT + Krailos [TFS 1.2]

When im try to compile it i got these errors:

Code:
1>commands.obj : error LNK2001: unresolved external symbol "public: bool __cdecl Store::reload(void)" (?reload@Store@@QEAA_NXZ)
1>game.obj : error LNK2001: unresolved external symbol "public: class boost::optional<class StoreOffer &> __cdecl Store::getOfferById(unsigned int)" (?getOfferById@Store@@QEAA?AV?$optional@AEAVStoreOffer@@@boost@@I@Z)
1>game.obj : error LNK2001: unresolved external symbol "public: static unsigned int __cdecl IOAccount::getCoinBalance(unsigned int)" (?getCoinBalance@IOAccount@@SAII@Z)
1>game.obj : error LNK2001: unresolved external...
Hello!

I have downloaded engine from that topic: [10.90] GlobalOT - FULL + NEW WWW + NEW LAYOUT + Krailos [TFS 1.2]

When im try to compile it i got these errors:

Code:
1>commands.obj : error LNK2001: unresolved external symbol "public: bool __cdecl Store::reload(void)" (?reload@Store@@QEAA_NXZ)
1>game.obj : error LNK2001: unresolved external symbol "public: class boost::optional<class StoreOffer &> __cdecl Store::getOfferById(unsigned int)" (?getOfferById@Store@@QEAA?AV?$optional@AEAVStoreOffer@@@boost@@I@Z)
1>game.obj : error LNK2001: unresolved external symbol "public: static unsigned int __cdecl IOAccount::getCoinBalance(unsigned int)" (?getCoinBalance@IOAccount@@SAII@Z)
1>game.obj : error LNK2001: unresolved external symbol "public: bool __cdecl Store::executeOnBuy(class Player *,class StoreOffer *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?executeOnBuy@Store@@QEAA_NPEAVPlayer@@PEAVStoreOffer@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>game.obj : error LNK2001: unresolved external symbol "public: static void __cdecl IOAccount::addCoins(unsigned int,int)" (?addCoins@IOAccount@@SAXIH@Z)
1>game.obj : error LNK2001: unresolved external symbol "public: void __cdecl Store::onTransactionCompleted(unsigned int,int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (?onTransactionCompleted@Store@@QEBAXIHAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>protocolgame.obj : error LNK2001: unresolved external symbol "public: bool __cdecl Store::executeOnRender(class Player *,class StoreOffer *)" (?executeOnRender@Store@@QEAA_NPEAVPlayer@@PEAVStoreOffer@@@Z)
1>protocolgame.obj : error LNK2001: unresolved external symbol "public: void __cdecl Store::getTransactionHistory(unsigned int,unsigned short,unsigned int,class std::vector<struct StoreTransaction,class std::allocator<struct StoreTransaction> > &)const " (?getTransactionHistory@Store@@QEBAXIGIAEAV?$vector@UStoreTransaction@@V?$allocator@UStoreTransaction@@@std@@@std@@@Z)
1>scriptmanager.obj : error LNK2001: unresolved external symbol "public: __cdecl Store::Store(void)" (??0Store@@QEAA@XZ)
1>scriptmanager.obj : error LNK2001: unresolved external symbol "public: bool __cdecl Store::loadFromXml(bool)" (?loadFromXml@Store@@QEAA_N_N@Z)
1>C:\Users\Tomek\Downloads\ots\Global10.90\vc14\x64\Release\theforgottenserver.exe : fatal error LNK1120: 10 unresolved externals
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

I was trying to compile it on Visual 2013, 2015, 2017 and always i get the same errors. I'm using TFS-SDK 3.2 and Boost 1.62.0.

Can anyone help me? Or maybe someone got it compiled on version x64?

It's a problem within the source code, my tip would be to use ORTS(GitHub - orts/server: A real map datapack based on TFS 1.2 engine) and TFS (GitHub - otland/forgottenserver: A free and open-source MMORPG server emulator written in C++)
Even if this would make the client version lower it is most likely more stable and you can compile it without any problems (not to mention the support you can get).

But if you download the latest TFS source download this; GitHub - WibbenZ/server at tfsUpdates
I updated it a while ago to be able to run TFS 1.3 with ORTS

ORTS is (atm?) only compatible with TFS 1.2(GitHub - otland/forgottenserver at 1.2).

If you wish to fix the problem with the code, it seems to be related the store class (store.cpp?)
 
Solution
Back
Top