cpprestsdk icon indicating copy to clipboard operation
cpprestsdk copied to clipboard

cpprest_compat breaks cURL header when building with Clang 14

Open lilianmoraru opened this issue 3 years ago • 3 comments

#define dllimport inside cpprest_compat.h breaks curl.h on Clang 14.

See minimized example here: godbolt

The issue was initially reported to LLVM. The LLVM issue was closed. For the reason, see these comments: comment1 and comment2.

lilianmoraru avatar Jun 27 '22 10:06 lilianmoraru

Yeah I can see why they closed that one. This header is pretty horrible.

barcharcraz avatar Jun 27 '22 21:06 barcharcraz

FYI this project is now dead. You should move away from cpprest ASAP. See the readme file.

laveur avatar Nov 08 '22 17:11 laveur

Indeed, we will fix any super critical bugs, but we highly, highly, highly recommend folks move to another library. We usually recommend libcurl.

barcharcraz avatar Nov 08 '22 20:11 barcharcraz