cpprestsdk icon indicating copy to clipboard operation
cpprestsdk copied to clipboard

Remove C++/CX from the codebase

Open TheStormN opened this issue 2 years ago • 2 comments

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

TheStormN avatar Apr 24 '23 11:04 TheStormN

@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

pratikpc avatar May 12 '24 19:05 pratikpc

@pratikpc Yes, we build our software for UWP too. But anyway, In one of the compiler updates, they've fixed the compatibility with C++20 and C++/CX.

TheStormN avatar Jul 26 '24 21:07 TheStormN