1,默认头文件路径:cpp -v 或者 `g++ -print-prog-name=cc1plus` -v
2,默认库路径:
3,c++
#include <stdio.h>
#include <string.h>
#include <iostream>
#include <stdlib.h>
#include "curl/curl.h"
using namespace std;
bool getUrl(char *filename)
{
CURL *curl;
CURLcode res;
FILE *fp;
if ((fp = fopen(filename, "w")) == NULL) // 返回结果用文件存储
return false;
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Accept: Agent-007");
curl = curl_easy_init(); // 初始化
if (curl)
{
//curl_