cURL / Mailing Lists / curl-library / Single Mail

curl-library

"Borland" C++Builder 2010 (bcc32 6.21) and libcurl 7.22.0

From: Salvor Hardin <salvor.public_at_gmail.com>
Date: Wed, 9 Nov 2011 11:23:12 -0600

I'm trying to standardize on libcurl 7.22 on all the compilers we use.
So far so good with both Visual C++ 2008 on Windows 7 and gcc on Ubuntu.

But I get linker errors when building a simple console program with bcc32 6.21.

I built OpenSSL 1.0.0e static lib using bcc32, and it passed all tests
bundled with openssl.
I built a static libcurl.lib using Makefile.b32 and WITH_SSL=1 (and
commented out -DUSE_WINDOWS_SSPI in Makefile.b32).

I created a simple console program (same one that works with other compilers.)
And I've defined CURL_STATICLIB in the project settings and made sure
it finds libcurl.lib.

But I get these linker errors:

[ILINK32 Error] Error: Unresolved external
'_Curl_resolver_global_init' referenced from
H:\LIB\BCC2010\LIBCURL-7.22.0\LIB\LIBCURL.LIB|easy
[ILINK32 Error] Error: Unresolved external '_Curl_resolver_init'
referenced from H:\LIB\BCC2010\LIBCURL-7.22.0\LIB\LIBCURL.LIB|url
[ILINK32 Error] Error: Unresolved external '_Curl_resolver_cleanup'
referenced from H:\LIB\BCC2010\LIBCURL-7.22.0\LIB\LIBCURL.LIB|url
[ILINK32 Error] Error: Unresolved external
'_Curl_resolver_wait_resolv' referenced from
H:\LIB\BCC2010\LIBCURL-7.22.0\LIB\LIBCURL.LIB|connect
[ILINK32 Error] Error: Unresolved external '_Curl_resolver_cancel'
referenced from H:\LIB\BCC2010\LIBCURL-7.22.0\LIB\LIBCURL.LIB|url
[ILINK32 Error] Error: Unresolved external '_Curl_resolver_getsock'
referenced from H:\LIB\BCC2010\LIBCURL-7.22.0\LIB\LIBCURL.LIB|multi
[ILINK32 Error] Error: Unresolved external
'_Curl_resolver_is_resolved' referenced from
H:\LIB\BCC2010\LIBCURL-7.22.0\LIB\LIBCURL.LIB|multi
[ILINK32 Error] Error: Unresolved external
'_Curl_resolver_getaddrinfo' referenced from
H:\LIB\BCC2010\LIBCURL-7.22.0\LIB\LIBCURL.LIB|hostasyn
[ILINK32 Error] Error: Unresolved external
'_Curl_resolver_global_cleanup' referenced from
H:\LIB\BCC2010\LIBCURL-7.22.0\LIB\LIBCURL.LIB|easy
[ILINK32 Error] Error: Unresolved external '_Curl_resolver_duphandle'
referenced from H:\LIB\BCC2010\LIBCURL-7.22.0\LIB\LIBCURL.LIB|easy

It would be great to be able to use static libcurl.lib on all
compilers without having to deploy a DLL.

Thanks in advance for any suggestions.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-11-09