curl-library
problem libcurl, no output on console
From: Alberto Glarey <alglare_at_tin.it>
Date: Sat, 27 May 2006 10:34:48 +0200
Date: Sat, 27 May 2006 10:34:48 +0200
Im trying to realize a simple C application.
the main code is :
-----
#include "stdio.h"
#include "curl/curl.h"
int main (int argc , char **argv)
{
CURL *curl=NULL;
CURLcode res;
curl=curl_easy_init();
if(curl!=NULL){res=curl_easy_setopt(curl,CURLOPT_URL,"http://www.google.com");}
else{printf("error\n");};
curl_easy_cleanup(curl);
return 0;
}
-----
im compilig with the following line :
gcc -o main main.c `curl-config --cflags --libs`
i get no errors while compiling.
running the program i get no errors, but i have NO output on console.
im using a debian box and "curl-config --version" give me :
libcurl 7.13.2
Thanks in advance for help.
Alberto Glarey
Received on 2006-05-27