From 72565cf195fc935a9b413a2985b429c0def36dc0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 30 Jun 2020 15:08:11 +0200 Subject: [PATCH] Document nmake arguments needed when using MSVC binaries In particular, mention that COMPILER_PREFIX must be set. Closes #18801. --- docs/msw/binaries.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/msw/binaries.md b/docs/msw/binaries.md index 0ce26eacb7..9489f38889 100644 --- a/docs/msw/binaries.md +++ b/docs/msw/binaries.md @@ -55,3 +55,12 @@ executables will require wxWidgets DLLs in addition to MSVC run-time DLLs, so you should consider adding the directory containing these DLLs to your PATH and either distributing them with your application or instructing your users to download them. + +Building samples with nmake +--------------------------- + +When using `makefile.vc` files for building wxWidgets samples using `nmake` +from command line, you need to use `SHARED=1` and also define `COMPILER_PREFIX` +appropriately, e.g. the full command line could be + + > nmake /f makefile.vc BUILD=release SHARED=1 COMPILER_PREFIX=vc14x