From d7cf5991ac6285febe8ce6f4bcdef87f67c93d83 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Thu, 10 Oct 2019 16:09:26 +0200 Subject: [PATCH] Mention additional MinGW compilation troubleshooting tips See https://github.com/godotengine/godot/issues/32695. --- development/compiling/compiling_for_windows.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/development/compiling/compiling_for_windows.rst b/development/compiling/compiling_for_windows.rst index 0735a8ca8..968df59b0 100644 --- a/development/compiling/compiling_for_windows.rst +++ b/development/compiling/compiling_for_windows.rst @@ -217,6 +217,13 @@ And for 32-bit:: sudo update-alternatives --config i686-w64-mingw32-g++ +.. note:: + + Using certain MinGW distributions (e.g. from Homebrew) may result in a build + error about ``sprintf_s`` or ``wcscpy_s`` when compiling Godot. If this is + the case, try passing + ``CXXFLAGS="-DMINGW_HAS_SECURE_API"`` at the end of the SCons command line. + Creating Windows export templates ---------------------------------