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 < [email protected]> 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
