curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: static libcurl with clang

From: Gisle Vanem via curl-library <curl-library_at_cool.haxx.se>
Date: Sun, 22 Mar 2020 15:11:06 +0100

Ray Satiro wrote:

> most of that but you may have to specify some on your own such as ws2_32. If the functions it can't find are CRT
> functions then that is an issue with your project and not libcurl.

Maybe it's an idea to add something like:

  #if defined(_MSC_VER) && defined(CURL_STATICLIB) && \
     !defined(CURL_NO_DEFAULT_LINKED_LIBS)
    #pragma comment(lib, "libcurl_a.lib")
  #endif

somewhere? With checks for '_DEBUG' etc.

-- 
--gv
-- 
--gv
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2020-03-22