You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @carlzoo ,
I fixed the error with the last commit. As the error message you posted says, there was a comparison between two different types (CURLformoption and CURLoption). With the last commit I should had fixed the problem. Let me know!
Hello,
I tried to compile the example with the http post login and I get this message.
g++ -std=c++11 postexample.cpp -L curlcpp/build/src/ -I curlcpp/include/ -lcurlcpp -lcurl -o
postexample :(
In file included from curlcpp/include/curl_easy.h:34:0,
from postexample.cpp:1:
curlcpp/include/curl_pair.h: In instantiation of ‘curl::curl_pair<T, std::basic_string >::curl_pair(T, const string&) [with T = CURLformoption; std::string = std::basic_string]’:
postexample.cpp:12:70: required from here
curlcpp/include/curl_pair.h:85:72: warning: comparison between ‘const enum CURLformoption’ and ‘enum CURLoption’ [-Wenum-compare]
curl_pair(const T option, const string &value) : option(option == CURLOPT_POSTFIELDS ? CURLOPT_COPYPOSTFIELDS : option), value(value) {};
^
curlcpp/include/curl_pair.h:85:94: warning: enumeral mismatch in conditional expression: ‘CURLoption’ vs ‘CURLformoption’ [-Wenum-compare]
curl_pair(const T option, const string &value) : option(option == CURLOPT_POSTFIELDS ? CURLOPT_COPYPOSTFIELDS : option), value(value) {};
^
In file included from curlcpp/include/curl_easy.h:34:0,
from postexample.cpp:1:
curlcpp/include/curl_pair.h:85:141: error: invalid conversion from ‘int’ to ‘CURLformoption’ [-fpermissive]
curl_pair(const T option, const string &value) : option(option == CURLOPT_POSTFIELDS ? CURLOPT_COPYPOSTFIELDS : option), value(value) {};
The text was updated successfully, but these errors were encountered: