just::thread Support Forum

General Category => General Discussion about just::thread => Topic started by: Rich Hornay on October 10, 2011, 12:24:28 PM

Title: #define _AMD64_
Post by: Rich Hornay on October 10, 2011, 12:24:28 PM
I am getting the following (VS2010, v90 toolset):

1>F:\ThirdParty\just_thread\1.7\include\jss/atomic_impl.hpp(16): error C2220: warning treated as error - no 'object' file generated
1>F:\ThirdParty\just_thread\1.7\include\jss/atomic_impl.hpp(16): warning C4005: '_AMD64_' : macro redefinition
1>          command-line arguments :  see previous definition of '_AMD64_'

I get around it via #undef _AMD64_ before including <atomic>, but I would prefer not to do that.  Maybe you should consider #ifndef _AMD64_ before defining it?  The value is somewhat erratic.  I have found it defined empty and 1.
Title: Re: #define _AMD64_
Post by: Anthony Williams on October 10, 2011, 12:30:59 PM
Thanks for the report; this fix will be in the next release.