Raging_Mage
Poke-King
Hey guys, I'm Josh I recently was going to compile TFS 1.2 but I ran into an error. I used these 2 tutorials:
https://github.com/otland/forgottenserver/wiki/Compiling-on-Windows
When I started to compile It gave me this error:
I don't quite get why It's giving me this error. As far as I know I did everything correctly I double checked everything.
I know It's says Please define ' _ENABLE_ATOMIC_ALIGNMENT_FIX to acknowledge that you understand this,' but I don't understand what I need to do.
Does anyone knows why I'm getting this error?
Help is always appreciated.
Thanks.
When I started to compile It gave me this error:
Code:
1>------ Build started: Project: theforgottenserver, Configuration: Release x64 ------
1> outputmessage.cpp
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\atomic(661): error C2338: You've instantiated std::atomic<T> with sizeof(T) equal to 2/4/8 and alignof(T) < sizeof(T). Before VS 2015 Update 2, this would have misbehaved at runtime. VS 2015 Update 2 was fixed to handle this correctly, but the fix inherently changes layout and breaks binary compatibility. Please define _ENABLE_ATOMIC_ALIGNMENT_FIX to acknowledge that you understand this, and that everything you're linking has been compiled with VS 2015 Update 2 (or later).
1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\atomic(675): note: see reference to class template instantiation 'std::_Atomic_base<_Ty,4>' being compiled
1> with
1> [
1> _Ty=boost::lockfree::detail::tagged_index
1> ]
1> C:\local\boost_1_60_0\boost/lockfree/detail/freelist.hpp(603): note: see reference to class template instantiation 'std::atomic<boost::lockfree::detail::tagged_index>' being compiled
1> C:\local\boost_1_60_0\boost/lockfree/detail/freelist.hpp(604): note: see reference to class template instantiation 'boost::lockfree::detail::fixed_size_freelist<T,NodeStorage>' being compiled
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I don't quite get why It's giving me this error. As far as I know I did everything correctly I double checked everything.
I know It's says Please define ' _ENABLE_ATOMIC_ALIGNMENT_FIX to acknowledge that you understand this,' but I don't understand what I need to do.
Does anyone knows why I'm getting this error?
Help is always appreciated.
Thanks.