I'd like to suggest the following Q&A for the FAQ:

--//--

Q: Why do some 32-bit MinGW-w64 applications fail with '... _vswprintf 
could not be located in the dynamic link library msvcrt.dll' on Windows 
XP SP1?

A: For C++, MinGW-w64 implements 'vswprintf (wchar_t *__stream, const 
wchar_t *__format, __builtin_va_list __local_argv)' as a call to 
'_vswprintf'.  Older versions of msvcrt.dll, like the version in XP SP1, 
do not include '_vswprintf'.  A workaround for this is to compile any 
C++ libraries and applications that use 'vswprintf' (with the preceding 
signature) with -D__USE_MINGW_ANSI_STDIO.  For example, to build the 
wxWidgets library for applications to be deployed on XP SP1, build 
wxWidgets with the following command line:
 > mingw32-make -f makefile.gcc CPPFLAGS="-D__USE_MINGW_ANSI_STDIO"

--//--


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to