• 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 TFS 1.3 Got this error after adding in brunos in-game shop system

Tangie

Member
Joined
Jan 27, 2021
Messages
36
Reaction score
15
Getting this error while compiling after adding brunos ingame shop to TFS 1.3


Code:
1>------ Build started: Project: theforgottenserver, Configuration: Release x64 ------
1>database.obj : error LNK2005: "public: bool __cdecl DBInsert::execute(void)" ([email protected]@@QEAA_NXZ) already defined in database.obj
1>database.obj : error LNK2005: "public: bool __cdecl DBInsert::addRow(class std::basic_ostringstream<char,struct std::char_traits<char>,class std::allocator<char> > &)" ([email protected]@@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z) already defined in database.obj
1>database.obj : error LNK2005: "public: bool __cdecl DBInsert::addRow(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" ([email protected]@@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z) already defined in database.obj
1>database.obj : error LNK2005: "public: __cdecl DBInsert::DBInsert(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" ([email protected]@[email protected][email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z) already defined in database.obj
1>database.obj : error LNK2005: "public: bool __cdecl DBResult::next(void)" ([email protected]@@QEAA_NXZ) already defined in database.obj
1>database.obj : error LNK2005: "public: bool __cdecl DBResult::hasNext(void)const " ([email protected]@@QEBA_NXZ) already defined in database.obj
1>database.obj : error LNK2005: "public: char const * __cdecl DBResult::getStream(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned long &)const " ([email protected]@@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]) already defined in database.obj
1>database.obj : error LNK2005: "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl DBResult::getString(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " ([email protected]@@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@Z) already defined in database.obj
1>database.obj : error LNK2005: "public: __cdecl DBResult::~DBResult(void)" ([email protected]@[email protected]) already defined in database.obj
1>database.obj : error LNK2005: "public: __cdecl DBResult::DBResult(struct st_mysql_res *)" ([email protected]@[email protected][email protected]@@Z) already defined in database.obj
1>database.obj : error LNK2005: "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Database::escapeBlob(char const *,unsigned int)const " ([email protected]@@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]) already defined in database.obj
1>database.obj : error LNK2005: "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Database::escapeString(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " ([email protected]@@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@Z) already defined in database.obj
1>database.obj : error LNK2005: "public: class std::shared_ptr<class DBResult> __cdecl Database::storeQuery(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" ([email protected]@@[email protected]@@@[email protected]@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@Z) already defined in database.obj
1>database.obj : error LNK2005: "public: bool __cdecl Database::executeQuery(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" ([email protected]@@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z) already defined in database.obj
1>database.obj : error LNK2005: "private: bool __cdecl Database::commit(void)" ([email protected]@@AEAA_NXZ) already defined in database.obj
1>database.obj : error LNK2005: "private: bool __cdecl Database::rollback(void)" ([email protected]@@AEAA_NXZ) already defined in database.obj
1>database.obj : error LNK2005: "private: bool __cdecl Database::beginTransaction(void)" ([email protected]@@AEAA_NXZ) already defined in database.obj
1>database.obj : error LNK2005: "public: bool __cdecl Database::connect(void)" ([email protected]@@QEAA_NXZ) already defined in database.obj
1>database.obj : error LNK2005: "public: __cdecl Database::~Database(void)" ([email protected]@[email protected]) already defined in database.obj
1>configmanager.obj : error LNK2005: "public: bool __cdecl ConfigManager::setBoolean(enum ConfigManager::boolean_config_t,bool)" ([email protected]@@[email protected]@[email protected]) already defined in configmanager.obj
1>configmanager.obj : error LNK2005: "public: bool __cdecl ConfigManager::setNumber(enum ConfigManager::integer_config_t,int)" ([email protected]@@[email protected]@[email protected]) already defined in configmanager.obj
1>configmanager.obj : error LNK2005: "public: bool __cdecl ConfigManager::setString(enum ConfigManager::string_config_t,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" ([email protected]@@[email protected]@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z) already defined in configmanager.obj
1>configmanager.obj : error LNK2005: "public: float __cdecl ConfigManager::getExperienceStage(unsigned int)const " ([email protected]@@[email protected]) already defined in configmanager.obj
1>configmanager.obj : error LNK2005: "public: bool __cdecl ConfigManager::getBoolean(enum ConfigManager::boolean_config_t)const " ([email protected]@@[email protected]@@Z) already defined in configmanager.obj
1>configmanager.obj : error LNK2005: "public: int __cdecl ConfigManager::getNumber(enum ConfigManager::integer_config_t)const " ([email protected]@@[email protected]@@Z) already defined in configmanager.obj
1>configmanager.obj : error LNK2005: "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const & __cdecl ConfigManager::getString(enum ConfigManager::string_config_t)const " ([email protected]@@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z) already defined in configmanager.obj
1>configmanager.obj : error LNK2005: "public: bool __cdecl ConfigManager::reload(void)" ([email protected]@@QEAA_NXZ) already defined in configmanager.obj
1>configmanager.obj : error LNK2005: "public: bool __cdecl ConfigManager::load(void)" ([email protected]@@QEAA_NXZ) already defined in configmanager.obj
1>configmanager.obj : error LNK2005: "public: __cdecl ConfigManager::ConfigManager(void)" ([email protected]@[email protected]) already defined in configmanager.obj
1>luascript.obj : error LNK2005: "public: void __cdecl NetworkMessage::addItemId(unsigned short)" ([email protected]@@[email protected]) already defined in luascript.obj
1>luascript.obj : error LNK2005: "public: void __cdecl NetworkMessage::addItem(class Item const *)" ([email protected]@@[email protected]@@Z) already defined in luascript.obj
1>luascript.obj : error LNK2005: "public: void __cdecl NetworkMessage::addItem(unsigned short,unsigned char)" ([email protected]@@[email protected]) already defined in luascript.obj
1>luascript.obj : error LNK2005: "public: void __cdecl NetworkMessage::addPosition(struct Position const &)" ([email protected]@@[email protected]@@Z) already defined in luascript.obj
1>luascript.obj : error LNK2005: "public: void __cdecl NetworkMessage::addPaddingBytes(unsigned __int64)" ([email protected]@@[email protected]) already defined in luascript.obj
1>luascript.obj : error LNK2005: "public: void __cdecl NetworkMessage::addBytes(char const *,unsigned __int64)" ([email protected]@@[email protected]) already defined in luascript.obj
1>luascript.obj : error LNK2005: "public: void __cdecl NetworkMessage::addDouble(double,unsigned char)" ([email protected]@@[email protected]) already defined in luascript.obj
1>luascript.obj : error LNK2005: "public: void __cdecl NetworkMessage::addString(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" ([email protected]@@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z) already defined in luascript.obj
1>luascript.obj : error LNK2005: "public: struct Position __cdecl NetworkMessage::getPosition(void)" ([email protected]@@[email protected]@XZ) already defined in luascript.obj
1>luascript.obj : error LNK2005: "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl NetworkMessage::getString(unsigned short)" ([email protected]@@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]) already defined in luascript.obj
1>C:\vcpkg\forgottenserver\vc14\x64\Release\theforgottenserver-x64.exe : fatal error LNK1169: one or more multiply defined symbols found
1>Done building project "theforgottenserver.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
 
Last edited:
Top