microsoft / cpprestsdk

The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Other
7.89k stars 1.63k forks source link

Remove C++/CX from the codebase #1753

Open TheStormN opened 1 year ago

TheStormN commented 1 year ago

C++/WinRT is now the recommended way to write UWP apps. Also C++/CX is not compatible with C++20.

I'm trying to migrate our project to C++20 which have dependency on cpprestsdk, but unfortunately the linker fails saying the standard libraries are incompatible. I'm getting this error:

vccorlib_lib_should_be_specified_before_msvcrt_lib_to_linker': value '1' doesn't match value '0' in msvcrt.lib
pratikpc commented 1 month ago

@TheStormN was this because your CMake App (if it was CMake) had the Windows Store environment variable turned on?

This is present in their CMakeLists.txt