• 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!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

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 *)" ([email protected]@[email protected]@@[email protected]@[email protected]@[email protected]@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 * &)" ([email protected]@[email protected]@@[email protected]@[email protected]@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 *)" ([email protected]@[email protected]@@[email protected]@[email protected]@[email protected]@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 *)" ([email protected]@[email protected]@@[email protected]@[email protected]@[email protected]@[email protected]@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 &)" ([email protected]@[email protected]@[email protected]@@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)" ([email protected]@[email protected]@@[email protected][email protected]@@[email protected]@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 " ([email protected]@[email protected]@@[email protected]@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 " ([email protected]@[email protected]@@[email protected]) 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 " ([email protected]@[email protected]@@[email protected]) 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 " ([email protected]@[email protected]@@[email protected]) 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 " ([email protected]@[email protected]@@[email protected]) 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:

Disastrous

New Member
Joined
Oct 18, 2022
Messages
12
Reaction score
0
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
 

katumblo

Member
Joined
Oct 20, 2010
Messages
51
Reaction score
6
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)" ([email protected]@[email protected]@@[email protected][email protected]@@[email protected]@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 *)" ([email protected]@[email protected]@@[email protected]@[email protected]@[email protected]@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 *)" ([email protected]@[email protected]@@[email protected]@[email protected]@[email protected]@[email protected]@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
 

Disastrous

New Member
Joined
Oct 18, 2022
Messages
12
Reaction score
0
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)" ([email protected]@[email protected]@@[email protected][email protected]@@[email protected]@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 *)" ([email protected]@[email protected]@@[email protected]@[email protected]@[email protected]@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 *)" ([email protected]@[email protected]@@[email protected]@[email protected]@[email protected]@[email protected]@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
 

katumblo

Member
Joined
Oct 20, 2010
Messages
51
Reaction score
6
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?
 

chucky91

Well-Known Member
Joined
Apr 8, 2010
Messages
204
Solutions
9
Reaction score
96
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 *)" ([email protected]@[email protected]@@[email protected]@[email protected]@[email protected]@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 * &)" ([email protected]@[email protected]@@[email protected]@[email protected]@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 *)" ([email protected]@[email protected]@@[email protected]@[email protected]@[email protected]@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 *)" ([email protected]@[email protected]@@[email protected]@[email protected]@[email protected]@[email protected]@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 &)" ([email protected]@[email protected]@[email protected]@@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)" ([email protected]@[email protected]@@[email protected][email protected]@@[email protected]@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 " ([email protected]@[email protected]@@[email protected]@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 " ([email protected]@[email protected]@@QEBA[email protected]) 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 " ([email protected]@[email protected]@@[email protected]) 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 " ([email protected]@[email protected]@@[email protected]) 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 " ([email protected]@[email protected]@@[email protected]) 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
 
Top