cpprestsdk
cpprestsdk copied to clipboard
Support mingw-w64 (from msys2) on Windows.
Supporting for MinGW on Windows is a long-standling feature request for the cpprestsdk project. This PR makes the codebase compilable with mingw-w64 from msys2, include main library, test cases and examples.
At the same time, this PR has minimized the changeset for the convenience of code review.
Resolves #202, #1361 and #1541.
/cc @barcharcraz.
I took a quick look at this, and I'm a bit concerned about how many new preprocessor branches are added. I'm also concerned that you are conditionally avoiding calling functions that should be available on mingw-w64, as they are in the UCRT and the legacy CRT.
@barcharcraz Thanks for reviewing this PR! I will revise that as soon as my Windows laptop back.
Got this error during "make -j":
[ 98%] Linking CXX shared library ../../../../Binaries/libhttplistener_test.dll
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/httplistener_test.dir/objects.a(building_response_tests.cpp.obj):building_response_tests.cpp:(.rdata$.refptr._ZN3web4http12status_codes2OKE[.refptr._ZN3web4http12status_codes2OKE]+0x0):
undefined reference to `web::http::status_codes::OK'
I guess this PR is dead?
I guess this PR is dead?
Not dead yet. Will address the review comments in this Sep.
Closing. Will reopen when I come back to this project.