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
This commit is contained in:
Jay Satiro 2019-12-15 17:31:23 -05:00
parent 1d2d3feb21
commit b0a9e3c28c

View File

@ -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