curl-library
Static curl with dynamic lib ?
Date: Fri, 14 Oct 2005 14:08:10 +0200
(sorry if I am out of topic, maybe can someone help me)
I have created some functions for my own that fully use cURL lib. I want thesefunctions set to be in a standalone dynamic lib : a win32's mingw dynamic lib ). I also want to have curl statically linked inside it. So I have tried to compile my own dll project with the static libcurl.a's version ( I have not forgotten cflag CURL_STATICLIB ).
The build was sucessfull, so I tried the lib on a test app linking on it my new lib... This new lib have a little problem.. It has not included the functions I wrote, and it only includes cURL functions... How is this possible..
here are my link line :
gcc -o httpreq.dll httpreq.o -lcurl -lwinmm -lwsock32 -pipe -shared -Wl,--output-def,"httpreq.def",--out-implib,"libhttpreq.a"
I was able to verify this looking at the definitions file :
EXPORTS
curl_easy_cleanup @1
curl_easy_duphandle @2
curl_easy_getinfo @3
curl_easy_init @4
curl_easy_perform @5
curl_easy_reset @6
curl_easy_setopt @7
curl_easy_strerror @8
curl_escape @9
curl_formadd @10
curl_formfree @11
curl_free @12
curl_getdate @13
curl_getenv @14
curl_global_cleanup @15
curl_global_init @16
curl_global_init_mem @17
curl_maprintf @18
curl_mfprintf @19
curl_mprintf @20
curl_msnprintf @21
curl_msprintf @22
curl_multi_add_handle @23
curl_multi_cleanup @24
curl_multi_fdset @25
curl_multi_info_read @26
curl_multi_init @27
curl_multi_perform @28
curl_multi_remove_handle @29
curl_multi_strerror @30
curl_mvaprintf @31
curl_mvfprintf @32
curl_mvprintf @33
curl_mvsnprintf @34
curl_mvsprintf @35
curl_share_cleanup @36
curl_share_init @37
curl_share_setopt @38
curl_share_strerror @39
curl_slist_append @40
curl_slist_free_all @41
curl_strequal @42
curl_strnequal @43
curl_unescape @44
I can't see my function anywhere, so they just haven't been included in the DLL... But how is it possible, the source files in my project were only this functions, and the libcurl is only present by link :/
Received on 2005-10-14