From b0a9e3c28c3c6bac8e201fcf327de5ba26a92a38 Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Sun, 15 Dec 2019 17:31:23 -0500 Subject: winbuild: Document CURL_STATICLIB requirement for static libcurl A static libcurl (ie winbuild mode=static) requires that the user define CURL_STATICLIB when using it in their application. This is already covered in the FAQ and INSTALL.md, but is a pretty important point so now it's noted in the BUILD.WINDOWS.txt as well. Assisted-by: Michael Vittiglio Closes https://github.com/curl/curl/pull/4721 --- winbuild/BUILD.WINDOWS.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'winbuild') diff --git a/winbuild/BUILD.WINDOWS.txt b/winbuild/BUILD.WINDOWS.txt index 1ede14f01..0e88e6449 100644 --- a/winbuild/BUILD.WINDOWS.txt +++ b/winbuild/BUILD.WINDOWS.txt @@ -114,6 +114,12 @@ already built but not with that option, or if the option was specified differently, you must destroy the build directory containing the configuration so that nmake can build it from scratch. +Building your own application with a static libcurl +=================================================== +When building an application that uses the static libcurl library on Windows, +you must define CURL_STATICLIB. Otherwise the linker will look for dynamic +import symbols. + Legacy Windows and SSL ====================== When you build curl using the build files in this directory the default SSL -- cgit v1.2.1