I have a C++ CLR wrapper project in Visual Studio 2022. The project platform was set for Win32 platform. Also, that works fine. but now, I need to set project for x64 platform. So, according to Win32 properties I set all properties for x64. then, I built the project. Next, I got this error:
Error C1189 #error: <future> is not supported when compiling with /clr or /clr:pure.
I searched on the internet, unluckily, I didn't find any worthwhile solutions. For example some people said you should use forward declaration for std::future
. It's good to know I didn't use any functions of std::future
in my project.
Is there any ways to solve it?
Is it possible to have CLR project in x64 platform?
At this picture you can see the trouble and more information.
regards.