When trying to compile cpr on windows with the msvc compiler the build fails with the following errors:
C2664 "CURLcode curl_mime_filename(curl_mimepart *, const char*)": Converting argument 2 from "const std::filesystem::path::value_type *" to "const char*" not possible
Example/How to Reproduce
Create an new CMakeLists.txt with the following content:
Description
When trying to compile cpr on windows with the msvc compiler the build fails with the following errors:
Example/How to Reproduce
CMakeLists.txt
with the following content:Possible Fix
The line in question is in
session.cpp
958:after changing to
it's working fine.
Where did you get it from?
GitHub (branch e.g. master)
Additional Context/Your Environment