<atomic> is not supported

Aug 14, 2014 at 10:01 AM
Hi Steve,

Thanks for answering my previous question so quickly. It helped me a lot.
I have installed the C++ REST SDK by NuGet package and it is now embedded into my project but when I compile the program, I get the following error:

C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\atomic(9): fatal error C1189: #error : <atomic> is not supported when compiling with /clr or /clr:pure.

It seems that it has to do with an unmanaged code. Do you know the cause of the error?
The problem came up when I was following your Http Client Tutorial.

Best Regards
Aug 14, 2014 at 5:46 PM
Hi RazRez

You won't be able to use the C=+ Rest SDK in managed C++/CLI. What you are seeing here is an error in one of our dependencies, atomics, that isn't supported. You will have to keep to using the C++ Rest SDK in the native C++ portions of your application.