How can I install MinGW-w64 and MSYS2?

Unfortunately, the MinGW-w64 installer you used sometimes has this issue. I myself am not sure about why this happens (I think it has something to do with Sourceforge URL redirection or whatever that the installer currently can’t handle properly enough). Anyways, if you’re already planning on using MSYS2, there’s no need for that installer. Download … Read more

Building Boost 1.52 with MinGW

Yes, that is correct. However there would have been a simpler, yet identical way; your steps until the bjam call are automatically done by bootstrap.bat: C:\boost_1_52_0> bootstrap.bat mingw Building Boost.Build engine … C:\boost_1_52_0> b2 toolset=gcc If not explicitly specified, the libraries will be placed into the stage\lib directory, include path is the installation root. To … Read more

MinGW .exe requires a few gcc dll’s regardless of the code?

Your commands are wrong ! Go to the directory where your main.cpp file is, and try the following. g++.exe -Wall -c -g main.cpp -o obj\Debug\main.o g++.exe -static -static-libgcc -static-libstdc++ -o “bin\Debug\Hello World.exe” obj\Debug\main.o then you’ll no longer need to copy the DLLs (for your Hello World program). Other notes: The MinGW installation instructions recommends setting … Read more

ValueError: Unknown MS Compiler version 1900

I made the following changes and it worked for me with the following configurations. OS : Win 7 Prof. SP1 64 bit CPython 3.6 , 64 Bit Mingw 64 (x86_64-7.1.0-posix-seh-rt_v5-rev0) Cython 0.25.2 I did the following Add mingw in the PATH variable (C:\mingw-w64\x86_64-7.1.0-posix-seh-rt_v5-rev0\mingw64\bin for me) Test by opening command line and command gcc works ( … Read more

How to stop MinGW and MSYS from mangling path names given at the command line

There is a way to suppress the path translation by setting MSYS_NO_PATHCONV=1 in Windows Git MSys or MSYS2_ARG_CONV_EXCL=”*” in MSYS2. Alternatively, you can set the variable only temporarily just for that command by putting the assignment just before the command itself: MSYS_NO_PATHCONV=1 arm-none-linux-gnueabi-gcc.exe -Wall -g \ -Wl,–dynamic-linker=/usr/lib/myrpath/ \ -Wl,-rpath=/usr/lib/myrpath \ -I../targetsysroot/usr/include \ myprogram.c -o myprogram