curl_easy_setopt not callable

useo6 useo6 at start.bg
Sat Sep 28 01:29:30 PDT 2013


Hi guys,

I recently updated my DMD-setup to 2.063.2 and having some 
problems using the curl library. I wrote something like that:

curl_slist* headers;
headers = curl_slist_append(headers, cast(char*) toStringz(user ~ 
": " ~ pass));

curl_easy_setopt(ch, CurlOption.timeout_ms, timeout);
curl_easy_setopt(ch, CurlOption.httpheader, headers);

But dmd says that curl_easy_setopt "...is not callable using 
argument types (void, CurlOption, curl_slist*)" and "... is not 
callable using argument types (void, CurlOption, ushort)" 
(because timeout is ushort data type). Any suggestions how to 
solve these problems? In previous dmd-builds it compiles without 
any errors...


More information about the Digitalmars-d-learn mailing list