curl-library
I can't seem to get a statically linked libcurl to work
Date: Wed, 20 Feb 2013 20:03:56 -0600
I've been trying to statically link curl into my dll (for a plugin to
another program) and can't get past the __imp_ unresolved symbols. I am
trying to compile my dll on windows 7 64 bit using CDT/eclipse. Under
libraries I have path/x64/ws2_32.lib and path/libcurl_a.lib. What am I
missing?
Link command: link /DLL /nologo /OUT:Name.dll plugin.obj
C:\Progra~1\Micros~4\Windows\v7.1\Lib\x64\WS2_32.lib <workspace
dir>\libcurl\lib\x64\libcurl_a.lib
Build command: nmake /f Makefile.vc mode=static MACHINE=x64 ENABLE_IDN=no
ENABLE_WINSSL=no DEBUG=no VC=10
I have tried with and without
*
#define CURL_DISABLE_FTP
#define CURL_DISABLE_LDAP
#define CURL_DISABLE_TELNET
#define CURL_DISABLE_DICT
#define CURL_DISABLE_FILE
#define CURL_DISABLE_TFTP
in curl_setup.h (I only need http)
*
errors
plugin.obj : error LNK2019: unresolved external symbol
__imp_curl_easy_cleanup referenced in function fn
plugin.obj : error LNK2019: unresolved external symbol
__imp_curl_easy_strerror referenced in function fn
plugin.obj : error LNK2019: unresolved external symbol
__imp_curl_easy_perform referenced in function fn
plugin.obj : error LNK2019: unresolved external symbol
__imp_curl_easy_setopt referenced in function fn
plugin.obj : error LNK2019: unresolved external symbol __imp_curl_easy_init
referenced in function fn
The built curl.exe does work
-----------------------------
waterfoul_at_gmail.com
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-02-21