标签:
1,编译curl为static库
2,重新建立一个testcurl控制台程序
#include "stdafx.h" #include <Windows.h> #include "curl/curl.h" #pragma comment(lib, "libcurl.lib") #pragma comment(lib, "wldap32.lib") #pragma comment(lib, "ws2_32.lib") #pragma comment(lib, "winmm.lib") int _tmain(int argc, _TCHAR* argv[]) { CURL *curl; CURLcode res; curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_URL, "http://2345.com/?kduba"); res = curl_easy_perform(curl); curl_easy_cleanup(curl); } getchar(); return 0; }
http://blog.csdn.net/appletreesujie/article/details/12082795
http://blog.inet198.cn/?appletreesujie/article/details/12082795
标签:
原文地址:http://www.cnblogs.com/findumars/p/5859657.html