cURL / Mailing Lists / curl-library / Single Mail

curl-library

i cant link the library to my project

From: shadow <shadow.of.soul08_at_gmail.com>
Date: Sat, 08 Mar 2008 14:39:03 -0200

Hi,

i hope any can help me with this :'(

the problem it's the linking of the library in my project, i'm using
mingw32 in windowsXP with codeblock and the libcurl 7.18.0 for win
generic, the Version type "libcurl" .

i set the search directories in codeblock to where is the lib and the
include's files, also i tried to set the CFLAG=-DCURL_STATICLIB but
still have the same error:

Linking executable: bin\Debug\client_backup.exe
obj\Debug\client_backupMain.o: In function
`ZN10login_form13ConnectServerER14wxCommandEvent':
C:/workspace/client_backup/client_backupMain.cpp:189: undefined
reference to `_imp__curl_easy_init'
C:/workspace/client_backup/client_backupMain.cpp:191: undefined
reference to `_imp__curl_easy_setopt'
C:/workspace/client_backup/client_backupMain.cpp:201: undefined
reference to `_imp__curl_easy_setopt'
C:/workspace/client_backup/client_backupMain.cpp:203: undefined
reference to `_imp__curl_easy_perform'
C:/workspace/client_backup/client_backupMain.cpp:205: undefined
reference to `_imp__curl_easy_getinfo'
C:/workspace/client_backup/client_backupMain.cpp:209: undefined
reference to `_imp__curl_easy_cleanup'

i search in google and i dont found anything about this....

this it's the link flags what i have set in the IDE:

-DCURL_STATICLIB -lcurl -lws2_32 -lssh2 -lwldap32 -lwinmm

Regards,
Shadow.
Received on 2008-03-08