• 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 Error compiling TFS 1.2

Joined
Jul 18, 2014
Messages
193
Solutions
2
Reaction score
15
Hi! I wanted to compile TFS 1.2 and i got this error:
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).

I've been investigating in another posts in otland and even i add in lockfree.h this:
Code:
#if _MSC_FULL_VER == 190023918 // Workaround for VS2015 Update 2. Boost.Lockfree is a header-only library, so this should be safe to do.
#define _ENABLE_ATOMIC_ALIGNMENT_FIX
#endif

And this dont work.
Months before, i used to uninstall Update 2 and i could compile without problems, but now i got Update 3 and even if i uninstall it, appears a lot of errors:
2vl06k0.png


Any idea? Im using Visual Studio 14 (2015) Update 3.
Thanks.

UPDATE:
I could fix the first error, but now im still getting the error showed on the image.
 
Last edited:
Back
Top