From: Bruno Haible Date: Sun, 12 Feb 2023 21:18:40 +0000 (+0100) Subject: Document that MSVC cannot be used to build shared libraries. X-Git-Tag: v0.22~161 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2191a434c5da411599c4c68b843121075303a1b;p=thirdparty%2Fgettext.git Document that MSVC cannot be used to build shared libraries. Binaries crash when they are linked to intl-8.dll. Whereas binaries don't crash when merely linked to iconv-2.dll. I have debugged this problem for several hours, and think it is a problem either in libtool or in the Microsoft linker. * INSTALL.windows: Mention to use --disable-shared with MSVC. --- diff --git a/INSTALL.windows b/INSTALL.windows index 72efd29f2..a1dc4ae03 100644 --- a/INSTALL.windows +++ b/INSTALL.windows @@ -71,6 +71,10 @@ There are three ways to create binaries of this package for Microsoft Windows: (api-ms-win*.dll) through the Windows Update mechanism, see https://support.microsoft.com/en-us/kb/2999226 . + Another constraint is that shared libraries built as part of this package + may not work (at least with MSVC 14.0). Therefore, you will need to pass + the configure option '--disable-shared' when building this package. + This recipe requires MS Visual C/C++ 9.0 or newer. You don't need the Visual Studio IDE, just the C/C++ tool chain. As of 2016, you can install the MS Visual C/C++ 14.0 tool chain from