cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re:Errors using Curl

From: <lsepe\_at_libero\.it>
Date: Fri, 9 Sep 2005 17:19:07 +0200

Please,

Can anyone tell me how to compile libcurl
(static mode) with mingw32 and MSys ?

cd /c/curl-7.14.1
mkdir build
cd build
../configure --disable-shared
make

..and when i link add :

-lcurl -lwsock32 -lws2_32 -lwinmm -lz

but ... the linker say :

updater.o(.text+0x36):updater.c: undefined reference to `_imp__curl_easy_init'
updater.o(.text+0x60):updater.c: undefined reference to `_imp__curl_easy_setopt'
updater.o(.text+0x82):updater.c: undefined reference to `_imp__curl_easy_setopt'
updater.o(.text+0xa4):updater.c: undefined reference to `_imp__curl_easy_setopt'
updater.o(.text+0xc0):updater.c: undefined reference to `_imp__curl_easy_setopt'
updater.o(.text+0xe1):updater.c: undefined reference to `_imp__curl_easy_setopt'

if i create libcurl3.dll all works fine ...but i'd like to embed dll in my app ...

Thanks and Best Regards..
Received on 2005-09-09