请问有人用过curl吗?写了一段代码:
…
curl = curl_easy_init();
res = curl_easy_setopt(curl, CURLOPT_URL, "http://google.com");
res = curl_easy_setopt( curl, CURLOPT_FOLLOWLOCATION, 1L );
res = curl_easy_setopt( curl, CURLOPT_WRITEFUNCTION, &write_data );
res = curl_easy_setopt( curl, CURLOPT_WRITEDATA, (void *)&wr_error );
…
init,set URL 都是正确的,可以返回正确值,但是执行到FOLLOW,WRITEDATA,WRITEFUNCTION 3行中任意一行, 系统就直接异常,win32和android真机同样的情况。
我用的cocos2dx版本是cocos2d-1.0.1-x-0.11.0,请问可能是什么问题呢?
不吝赐教