curl-library
Problems with libcurl
From: walda alexcitement <cutresoft_at_gmail.com>
Date: Tue, 28 Feb 2006 12:29:45 +0100
Date: Tue, 28 Feb 2006 12:29:45 +0100
I'm trying to use libcurl, but i have a problem when i try to execute the
program. The source code is:
#include <stdio.h>
#include <stdlib.h>
#include <curl.h>
int main(int argc, char *argv[])
{
CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl)
{
curl_easy_setopt(curl, CURLOPT_URL, "www.google.es");
res = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
system("PAUSE");
return 0;
}
I can compile it with no errors, but when I try to execute I've got a
Segmentation Fault message, why??
I'm using WinXP and Dev-C++ compiler,(minGW)
Please, help me.
Received on 2006-02-28