If I tried to compile some of the examples like the main example in the project README I got following error:
/usr/local/ews/ews.hpp:8465:78: error: macro "curl_easy_setopt" passed 4 arguments, but takes just 3
8465 | auto retcode = curl_easy_setopt(handle_.get(), option, arg1, arg2);
| ^
In file included from /usr/local/ews/ews.hpp:57,
from test.cpp:1:
/usr/include/x86_64-linux-gnu/curl/curl.h:3097: note: macro "curl_easy_setopt" defined here
3097 | #define curl_easy_setopt(handle,opt,param) curl_easy_setopt(handle,opt,param)
|
In file included from test.cpp:1:
/usr/local/ews/ews.hpp: In member function ‘void ews::internal::http_request::set_option(CURLoption, T1, T2)’:
/usr/local/ews/ews.hpp:8474:39: error: cannot convert ‘CURLcode (*)(void*, CURLoption, ...)’ to ‘CURLcode’
8474 | retcode);
| ^~~~~~~
| |
| CURLcode (*)(void*, CURLoption, ...)
/usr/local/ews/ews.hpp:7740:72: note: initializing argument 2 of ‘ews::curl_error ews::internal::make_curl_error(const string&, CURLcode, const string&)’
7740 | inline curl_error make_curl_error(const std::string& msg, CURLcode rescode,
| ~~~~~~~~~^~~~~~~
/usr/local/ews/ews.hpp:8480:39: error: cannot convert ‘CURLcode (*)(void*, CURLoption, ...)’ to ‘CURLcode’
8480 | retcode);
| ^~~~~~~
| |
| CURLcode (*)(void*, CURLoption, ...)
/usr/local/ews/ews.hpp:7740:72: note: initializing argument 2 of ‘ews::curl_error ews::internal::make_curl_error(const string&, CURLcode, const string&)’
7740 | inline curl_error make_curl_error(const std::string& msg, CURLcode rescode,
| ~~~~~~~~~^~~~~~~
If I tried to compile some of the examples like the main example in the project README I got following error:
OS:
curl:
Which libcurl version has been used as base for the project?