curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: static linked curl library has undefined symbols

From: Jeroen Ooms via curl-library <curl-library_at_cool.haxx.se>
Date: Sat, 4 Nov 2017 16:25:35 +0100

If you're on Windows, you have to compile your application/bindings
with "-DCURL_STATICLIB" for it to statically link against libcurl.

On Sat, Nov 4, 2017 at 11:07 AM, 开心 via curl-library
<curl-library_at_cool.haxx.se> wrote:
> i'm compiling a static curl library.
> env PKG_CONFIG_PATH=/usr/lib/ssl/pkgconfig ./configure --with-ssl && make
> it successfully compiled the curl library.
> but I find that there's lots of undefined symbols.
> nm -Cu libcurl.a |grep ssl -i
> U Curl_ssl_connect
> U Curl_ssl_connect_nonblocking
> U Curl_ssl_close
> U Curl_ssl_connect
> U Curl_ssl_shutdown
> U Curl_clone_ssl_config
> U Curl_free_ssl_config
> U Curl_ssl_close
> U Curl_ssl_close_all
> U Curl_ssl_config_matches
> U Curl_ssl_free_certinfo
> U Curl_ssl_set_engine
> U Curl_ssl_set_engine_default
> libcurl_la-ssluse.o:
> ......
>
>
> how can i solve this problem?
>
> -------------------------------------------------------------------
> Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
> Etiquette: https://curl.haxx.se/mail/etiquette.html

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-11-04