Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>For old versions of MinGW, you can use a wrapper:</p> <p>mingw-unicode-main:</p> <p><a href="https://github.com/coderforlife/mingw-unicode-main/" rel="noreferrer">https://github.com/coderforlife/mingw-unicode-main/</a></p> <blockquote> <p>Simple wrappers to add wmain and wWinMain support in MinGW</p> <p>These wrappers allow for use of wmain / wWinMain in MinGW seamlessly with Unicode (WCHAR), regular (CHAR), or the ability to choose (TCHAR).</p> <p>The instructions for using them are in the files. Also take a look at other programs that use them.</p> </blockquote> <hr> <p>For new versions of MinGW, you should use the <code>-municode</code> option, like it says in the mingw-unicode-main readme:</p> <blockquote> <p>Note: This should no longer be used as MinGW now has a built-in solution. Add -municode to the command line (and possibly extern "C" to the wmain function).</p> </blockquote> <p>The <code>-municode</code> option works with MinGW-w64. In 2012-07, when I tried MinGW, it did not have the <code>-municode</code> option.</p> <p>Here is how to install MinGW-w64:</p> <p>Target Win32:</p> <ul> <li><p>Home > Toolchains targetting Win32 > Personal Builds > rubenvb > gcc-4.7-release:</p> <p><a href="http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/gcc-4.7-release/" rel="noreferrer">http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/gcc-4.7-release/</a></p></li> <li><p>On Windows, you want "i686-w64-mingw32-gcc-4.7.2-release-<strong>win32</strong>_rubenvb.7z".</p></li> <li><p>Extract folder to the root of your drive.</p></li> <li><p>Rename the "mingw32" folder to "MinGW-32".</p></li> </ul> <p>Target Win64:</p> <ul> <li><p>Home > Toolchains targetting Win64 > Personal Builds > rubenvb > gcc-4.7-release:</p> <p><a href="http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/rubenvb/gcc-4.7-release/" rel="noreferrer">http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/rubenvb/gcc-4.7-release/</a></p></li> <li><p>On Windows, you want "x86_64-w64-mingw32-gcc-4.7.2-release-<strong>win32</strong>_rubenvb.7z".</p></li> <li><p>Extract folder to the root of your drive.</p></li> <li><p>Rename the "mingw64" folder to "MinGW-64".</p></li> </ul> <hr> <p>Unicode-related questions:</p> <ul> <li><a href="https://stackoverflow.com/questions/10932473/how-do-i-use-the-entry-point-wmain-in-codeblocks/">How do I use the wmain() entry point in Code::Blocks?</a></li> <li><a href="https://stackoverflow.com/questions/5366208/compiling-windows-program-in-dev-c-gives-error/">Compiling Windows program in Dev-C++ gives error</a></li> <li><a href="https://stackoverflow.com/questions/4661304/define-unicode-not-working-with-mingw-codeblocks/">#define _UNICODE not working with MinGW + CodeBlocks</a></li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload