On Thu, 24 May 2012, Mark Brand wrote:

However, naively linking Windows applications to static libcurl does not work due to CURL_EXTERN introducing the dreaded _imp prefix in the public headers.

It seems like a reasonable measure to me to add -DCURL_STATICLIB to Cflags in libcurl.pc. This defines away CURL_EXTERN and linking works as expected. Or is there a better way?

Wait, you're using libcurl.pc on windows? And can we really do that to libcurl.pc without ruining how it is used for "normal" shared linking?

--

 / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to