• 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!

TFS[1.3] failed compile

Dyba

New Member
Joined
Apr 16, 2020
Messages
1
Reaction score
0
Hi

Lua:
1>Generating code

1>Finished generating code

1>libboost_filesystem-vc141-mt-x64-1_66.lib(operations.obj) : error LNK2005: "class boost::filesystem::path __cdecl boost::filesystem::detail::current_path(class boost::system::error_code *)" (?current_path@detail@filesystem@boost@@YA?AVpath@23@PEAVerror_code@system@3@@Z) already defined in boost_filesystem-vc140-mt.lib(boost_filesystem-vc142-mt-x64-1_73.dll)

1>libboost_filesystem-vc141-mt-x64-1_66.lib(operations.obj) : error LNK2005: "class boost::system::error_code __cdecl boost::filesystem::detail::dir_itr_close(void * &)" (?dir_itr_close@detail@filesystem@boost@@YA?AVerror_code@system@3@AEAPEAX@Z) already defined in boost_filesystem-vc140-mt.lib(boost_filesystem-vc142-mt-x64-1_73.dll)

1>libboost_filesystem-vc141-mt-x64-1_66.lib(operations.obj) : error LNK2005: "void __cdecl boost::filesystem::detail::directory_iterator_increment(class boost::filesystem::directory_iterator &,class boost::system::error_code *)" (?directory_iterator_increment@detail@filesystem@boost@@YAXAEAVdirectory_iterator@23@PEAVerror_code@system@3@@Z) already defined in boost_filesystem-vc140-mt.lib(boost_filesystem-vc142-mt-x64-1_73.dll)

1>libboost_filesystem-vc141-mt-x64-1_66.lib(operations.obj) : error LNK2005: "class boost::filesystem::file_status __cdecl boost::filesystem::detail::status(class boost::filesystem::path const &,class boost::system::error_code *)" (?status@detail@filesystem@boost@@YA?AVfile_status@23@AEBVpath@23@PEAVerror_code@system@3@@Z) already defined in boost_filesystem-vc140-mt.lib(boost_filesystem-vc142-mt-x64-1_73.dll)

1>libboost_filesystem-vc141-mt-x64-1_66.lib(path.obj) : error LNK2005: "public: class boost::filesystem::path & __cdecl boost::filesystem::path::eek:perator/=(class boost::filesystem::path const &)" (??_0path@filesystem@boost@@QEAAAEAV012@AEBV012@@Z) already defined in boost_filesystem-vc140-mt.lib(boost_filesystem-vc142-mt-x64-1_73.dll)

1>libboost_filesystem-vc141-mt-x64-1_66.lib(path.obj) : error LNK2005: "public: static class std::codecvt<wchar_t,char,struct _Mbstatet> const & __cdecl boost::filesystem::path::codecvt(void)" (?codecvt@path@filesystem@boost@@SAAEBV?$codecvt@_WDU_Mbstatet@@@std@@XZ) already defined in boost_filesystem-vc140-mt.lib(boost_filesystem-vc142-mt-x64-1_73.dll)

1>libboost_filesystem-vc141-mt-x64-1_66.lib(path.obj) : error LNK2005: "public: int __cdecl boost::filesystem::path::compare(class boost::filesystem::path const &)const " (?compare@path@filesystem@boost@@QEBAHAEBV123@@Z) already defined in boost_filesystem-vc140-mt.lib(boost_filesystem-vc142-mt-x64-1_73.dll)

1>libboost_filesystem-vc141-mt-x64-1_66.lib(path.obj) : error LNK2005: "public: class boost::filesystem::path __cdecl boost::filesystem::path::extension(void)const " (?extension@path@filesystem@boost@@QEBA?AV123@XZ) already defined in boost_filesystem-vc140-mt.lib(boost_filesystem-vc142-mt-x64-1_73.dll)

1>libboost_filesystem-vc141-mt-x64-1_66.lib(path.obj) : error LNK2005: "public: class boost::filesystem::path __cdecl boost::filesystem::path::filename(void)const " (?filename@path@filesystem@boost@@QEBA?AV123@XZ) already defined in boost_filesystem-vc140-mt.lib(boost_filesystem-vc142-mt-x64-1_73.dll)

1>libboost_filesystem-vc141-mt-x64-1_66.lib(path.obj) : error LNK2005: "public: class boost::filesystem::path __cdecl boost::filesystem::path::parent_path(void)const " (?parent_path@path@filesystem@boost@@QEBA?AV123@XZ) already defined in boost_filesystem-vc140-mt.lib(boost_filesystem-vc142-mt-x64-1_73.dll)

1>libboost_filesystem-vc141-mt-x64-1_66.lib(path.obj) : error LNK2005: "public: class boost::filesystem::path __cdecl boost::filesystem::path::relative_path(void)const " (?relative_path@path@filesystem@boost@@QEBA?AV123@XZ) already defined in boost_filesystem-vc140-mt.lib(boost_filesystem-vc142-mt-x64-1_73.dll)

1>C:\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 ==========


Thx
Post automatically merged:

Adnotacja 2020-05-19 214233.png
 
Last edited:
It says that a code is already defined in another file = boost. So it says that you cant use that code again. You can only use it once i think. Click on the "LNK2005" and it should explain it better
 
It says that a code is already defined in another file = boost. So it says that you cant use that code again. You can only use it once i think. Click on the "LNK2005" and it should explain it better

exalcty, is this.. but, i never defined this :S

My error is this

Lua:
LNK2005 "public: static class std::codecvt<wchar_t,char,struct _Mbstatet> const & __cdecl boost::filesystem::path::codecvt(void)" (?codecvt@path@filesystem@boost@@SAAEBV?$codecvt@_WDU_Mbstatet@@@std@@XZ) já definida no boost_filesystem-vc140-mt.lib(boost_filesystem-vc142-mt-x64-1_80.dll)    TheOTXServer    <path>\msvc\libboost_filesystem-vc141-mt-1_64.lib(path.obj) 1   

LNK2005 "void __cdecl boost::filesystem::detail::directory_iterator_increment(class boost::filesystem::directory_iterator &,class boost::system::error_code *)" (?directory_iterator_increment@detail@filesystem@boost@@YAXAEAVdirectory_iterator@23@PEAVerror_code@system@3@@Z) já definida no boost_filesystem-vc140-mt.lib(boost_filesystem-vc142-mt-x64-1_80.dll)   TheOTXServer    <path>\msvc\libboost_filesystem-vc141-mt-1_64.lib(operations.obj)   1   

LNK2005 "class boost::filesystem::file_status __cdecl boost::filesystem::detail::status(class boost::filesystem::path const &,class boost::system::error_code *)" (?status@detail@filesystem@boost@@YA?AVfile_status@23@AEBVpath@23@PEAVerror_code@system@3@@Z) já definida no boost_filesystem-vc140-mt.lib(boost_filesystem-vc142-mt-x64-1_80.dll)    TheOTXServer    <path>\msvc\libboost_filesystem-vc141-mt-1_64.lib(operations.obj)   1
 
exalcty, is this.. but, i never defined this :S

My error is this

Lua:
LNK2005 "public: static class std::codecvt<wchar_t,char,struct _Mbstatet> const & __cdecl boost::filesystem::path::codecvt(void)" (?codecvt@path@filesystem@boost@@SAAEBV?$codecvt@_WDU_Mbstatet@@@std@@XZ) já definida no boost_filesystem-vc140-mt.lib(boost_filesystem-vc142-mt-x64-1_80.dll)    TheOTXServer    <path>\msvc\libboost_filesystem-vc141-mt-1_64.lib(path.obj) 1  

LNK2005 "void __cdecl boost::filesystem::detail::directory_iterator_increment(class boost::filesystem::directory_iterator &,class boost::system::error_code *)" (?directory_iterator_increment@detail@filesystem@boost@@YAXAEAVdirectory_iterator@23@PEAVerror_code@system@3@@Z) já definida no boost_filesystem-vc140-mt.lib(boost_filesystem-vc142-mt-x64-1_80.dll)   TheOTXServer    <path>\msvc\libboost_filesystem-vc141-mt-1_64.lib(operations.obj)   1  

LNK2005 "class boost::filesystem::file_status __cdecl boost::filesystem::detail::status(class boost::filesystem::path const &,class boost::system::error_code *)" (?status@detail@filesystem@boost@@YA?AVfile_status@23@AEBVpath@23@PEAVerror_code@system@3@@Z) já definida no boost_filesystem-vc140-mt.lib(boost_filesystem-vc142-mt-x64-1_80.dll)    TheOTXServer    <path>\msvc\libboost_filesystem-vc141-mt-1_64.lib(operations.obj)   1
Never seen this error. What are you using? Vcpkg? I would start over , delete everything and follow the compile guide again, and hopw you get none or another error so i can help you with that
 
Never seen this error. What are you using? Vcpkg? I would start over , delete everything and follow the compile guide again, and hopw you get none or another error so i can help you with that

you say create a project from 0 in visual studio and implement all files/dependencies?
 
Hi

Lua:
1>Generating code

1>Finished generating code

1>libboost_filesystem-vc141-mt-x64-1_66.lib(operations.obj) : error LNK2005: "class boost::filesystem::path __cdecl boost::filesystem::detail::current_path(class boost::system::error_code *)" (?current_path@detail@filesystem@boost@@YA?AVpath@23@PEAVerror_code@system@3@@Z) already defined in boost_filesystem-vc140-mt.lib(boost_filesystem-vc142-mt-x64-1_73.dll)

1>libboost_filesystem-vc141-mt-x64-1_66.lib(operations.obj) : error LNK2005: "class boost::system::error_code __cdecl boost::filesystem::detail::dir_itr_close(void * &)" (?dir_itr_close@detail@filesystem@boost@@YA?AVerror_code@system@3@AEAPEAX@Z) already defined in boost_filesystem-vc140-mt.lib(boost_filesystem-vc142-mt-x64-1_73.dll)

1>libboost_filesystem-vc141-mt-x64-1_66.lib(operations.obj) : error LNK2005: "void __cdecl boost::filesystem::detail::directory_iterator_increment(class boost::filesystem::directory_iterator &,class boost::system::error_code *)" (?directory_iterator_increment@detail@filesystem@boost@@YAXAEAVdirectory_iterator@23@PEAVerror_code@system@3@@Z) already defined in boost_filesystem-vc140-mt.lib(boost_filesystem-vc142-mt-x64-1_73.dll)

1>libboost_filesystem-vc141-mt-x64-1_66.lib(operations.obj) : error LNK2005: "class boost::filesystem::file_status __cdecl boost::filesystem::detail::status(class boost::filesystem::path const &,class boost::system::error_code *)" (?status@detail@filesystem@boost@@YA?AVfile_status@23@AEBVpath@23@PEAVerror_code@system@3@@Z) already defined in boost_filesystem-vc140-mt.lib(boost_filesystem-vc142-mt-x64-1_73.dll)

1>libboost_filesystem-vc141-mt-x64-1_66.lib(path.obj) : error LNK2005: "public: class boost::filesystem::path & __cdecl boost::filesystem::path::eek:perator/=(class boost::filesystem::path const &)" (??_0path@filesystem@boost@@QEAAAEAV012@AEBV012@@Z) already defined in boost_filesystem-vc140-mt.lib(boost_filesystem-vc142-mt-x64-1_73.dll)

1>libboost_filesystem-vc141-mt-x64-1_66.lib(path.obj) : error LNK2005: "public: static class std::codecvt<wchar_t,char,struct _Mbstatet> const & __cdecl boost::filesystem::path::codecvt(void)" (?codecvt@path@filesystem@boost@@SAAEBV?$codecvt@_WDU_Mbstatet@@@std@@XZ) already defined in boost_filesystem-vc140-mt.lib(boost_filesystem-vc142-mt-x64-1_73.dll)

1>libboost_filesystem-vc141-mt-x64-1_66.lib(path.obj) : error LNK2005: "public: int __cdecl boost::filesystem::path::compare(class boost::filesystem::path const &)const " (?compare@path@filesystem@boost@@QEBAHAEBV123@@Z) already defined in boost_filesystem-vc140-mt.lib(boost_filesystem-vc142-mt-x64-1_73.dll)

1>libboost_filesystem-vc141-mt-x64-1_66.lib(path.obj) : error LNK2005: "public: class boost::filesystem::path __cdecl boost::filesystem::path::extension(void)const " (?extension@path@filesystem@boost@@QEBA?AV123@XZ) already defined in boost_filesystem-vc140-mt.lib(boost_filesystem-vc142-mt-x64-1_73.dll)

1>libboost_filesystem-vc141-mt-x64-1_66.lib(path.obj) : error LNK2005: "public: class boost::filesystem::path __cdecl boost::filesystem::path::filename(void)const " (?filename@path@filesystem@boost@@QEBA?AV123@XZ) already defined in boost_filesystem-vc140-mt.lib(boost_filesystem-vc142-mt-x64-1_73.dll)

1>libboost_filesystem-vc141-mt-x64-1_66.lib(path.obj) : error LNK2005: "public: class boost::filesystem::path __cdecl boost::filesystem::path::parent_path(void)const " (?parent_path@path@filesystem@boost@@QEBA?AV123@XZ) already defined in boost_filesystem-vc140-mt.lib(boost_filesystem-vc142-mt-x64-1_73.dll)

1>libboost_filesystem-vc141-mt-x64-1_66.lib(path.obj) : error LNK2005: "public: class boost::filesystem::path __cdecl boost::filesystem::path::relative_path(void)const " (?relative_path@path@filesystem@boost@@QEBA?AV123@XZ) already defined in boost_filesystem-vc140-mt.lib(boost_filesystem-vc142-mt-x64-1_73.dll)

1>C:\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 ==========


Thx
Post automatically merged:

View attachment 45737
did you change the properties on which machine it will compile? v141 very old, you can use vs community 2022, and vc143, and download libs boost by vcpkg
 
Back
Top