curl-library
Re: libcurl - simple.c
Date: Wed, 27 Oct 2010 12:55:37 +0530
You have to link the libraries.
In linux, I do
$gcc simple.c `pkg-config --cflags --libs libcurl`
or simply
$gcc simple.c -lcurl
I have not used it in windows. But, the process whould be similar.
On Wed, Oct 27, 2010 at 12:28 PM, Pradeep Thomas <
pradeep.thomas_at_ushustech.com> wrote:
> Hi,
>
>
>
> *I tried to compile simple source code using libcurl using visual studio
> 2008, which is giving the following errors.*
>
> * *
>
> *Please provide some suggestions. I am also attaching am error log. *
>
> * *
>
> *>> [Linker error] undefined reference to `_imp__curl_easy_init' *
> *>> [Linker error] undefined reference to `_imp__curl_easy_setopt' *
> *>> [Linker error] undefined reference to `_imp__curl_easy_perform' *
> *>> [Linker error] undefined reference to `_imp__curl_easy_cleanup'*
>
> * *
>
> * *
>
>
>
> Regards
>
> Pradeep Thomas
>
>
>
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>
-- Abhijeet Rastogi (shadyabhi) http://www.google.com/profiles/abhijeet.1989
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-10-27