curl / Mailing Lists / curl-users / Single Mail


build static libcurl lib on windows with WinSSL

From: אהד גלס <>
Date: Wed, 23 Jan 2019 16:34:22 +0200

hello everyone,

I want to create static libcurl.lib with WinSSl. I built libcurl.lib
on windows with VC++ using the command: "nmake /f
RTLIBCFG=static ENABLE_WINSSL=yes mode=static MACHINE=x64 VC=17"

it created a lib inside the directory:
"libcurl-vc17-x64-release-static-ipv6-sspi-winssl-obj-lib" (I tried
them both)

after that I created a new dll project that will link with this lib
(using linker-input-libcurl.lib)

after I created my dll and inspect it using CFF explorer I can see it
has libcurl.dll in its import directories which means it wasnt built
staticly at all.

what am I missing here?

Received on 2019-01-23