otland / forgottenserver

A free and open-source MMORPG server emulator written in C++
https://otland.net
GNU General Public License v2.0
1.58k stars 1.05k forks source link

Error on compile MVS 2015 #1610

Closed PrinterLUA closed 8 years ago

PrinterLUA commented 8 years ago

1>C:\local\boost_1_59_0\boost/asio/detail/config.hpp(227): warning C4005: 'BOOST_ASIO_ERROR_CATEGORY_NOEXCEPT': macro redefinition 1> C:\local\boost_1_59_0\boost/asio/detail/config.hpp(213): note: see previous definition of 'BOOST_ASIO_ERROR_CATEGORY_NOEXCEPT'

fail: 1>LINK : fatal error LNK1104: cannot open file 'libboost_system-vc140-mt-1_59.lib' ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

PrinterLUA commented 8 years ago

Ok, since it got closed without any explanations. I figured it out: in the forgottenserver-master\vc14, you will find settings.props at line 10-11 edit from lib32-msvc-12.0 to lib32-msvc-14.0 and same for lib64-msvc-12.0 to lib64-msvc-14.0

Then if you get a error due to mpir, then you have to compile latest 2.7: https://github.com/wbhart/mpir

or just download compiled one here: https://mega.nz/#!Hs0SyAYa!2-BGH_PCxNDU3IKhj8vkbOr8r3zEeXBmvc2sUmz7W-o

You wonder where should i add this folder? Well in the tfs-sdk-2.0, replace it with the old mpir folder.