• 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 compiling errors

Sajgon

Advanced OT User
Joined
Mar 10, 2017
Messages
282
Solutions
3
Reaction score
237
Location
Sweden
I am trying to compile TFS sources on my Windows 10 PC with settings 'Release - x64' . It worked fine before I just dont know what happend.

I am getting this error

Code:
1> waitlist.cpp
1> weapons.cpp
1> wildcardtree.cpp
1>connection.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ)
1>fileloader.obj : error LNK2001: unresolved external symbol "public: unsigned int64 cdecl boost::iostreams::mapped_file_source::size(void)const " (?size@mapped_file_source@iostreams@boost@@QEBA_KXZ)
1>fileloader.obj : error LNK2001: unresolved external symbol "public: char const * cdecl boost::iostreams::mapped_file_source::end(void)const " (?end@mapped_file_source@iostreams@boost@@QEBAPEBDXZ)
1>fileloader.obj : error LNK2001: unresolved external symbol "public: char const * cdecl boost::iostreams::mapped_file_source::begin(void)const " (?begin@mapped_file_source@iostreams@boost@@QEBAPEBDXZ)
1>fileloader.obj : error LNK2001: unresolved external symbol "private: void cdecl boost::iostreams::mapped_file_source::init(void)" (?init@mapped_file_source@iostreams@boost@@AEAAXXZ)
1>fileloader.obj : error LNK2001: unresolved external symbol "private: void cdecl boost::iostreams::mapped_file_source::open_impl(struct boost::iostreams::basic_mapped_file_params<class boost::iostreams::detail::path> const &)" (?open_impl@mapped_file_source@iostreams@boost@@AEAAXAEBU?$basic_mapped_file_params@Vpath@detail@iostreams@boost@@@23@@Z)
1>otpch.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ)
1>C:\Users\Sajgon\Desktop\forgottenserver-master\vc14\x64\Release\theforgottenserver.exe : fatal error LNK1120: 7 unresolved externals
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========


I have tried
.. to repair Visual Studio 2015
.. to restart PC
.. to google
.. to #include <boost/system/config.hpp> in the files with the errors.
.. to include boost/systems in properties
.. to build Win32 edition but same errors


These are my setting in ..
C/C++ > General > Additional Include Directories
D:\projects\OT\tfs-sdk-3.2\pugixml\include;
D:\projects\OT\tfs-sdk-3.2\mysql-connector-c\include;
D:\projects\OT\tfs-sdk-3.2\mpir\include;
D:\projects\OT\tfs-sdk-3.2\LuaJIT\include;
D:\local\boost_1_62_0;
Linker > General > Additional Library Directories
D:\local\boost_1_62_0\lib64-msvc-14.0;
D:\projects\OT\tfs-sdk-3.2\LuaJIT\lib64;
D:\projects\OT\tfs-sdk-3.2\mysql-connector-c\lib64;
D:\projects\OT\tfs-sdk-3.2\mpir\lib64;

I am using a modified TFS 1.2.

Any ideas? Thank you in advance.

Regards
Sajgon
 
Back
Top