Yahoo Canada Web Search

Search results

  1. I have windows 8.1 on a 64 bit computer. After attempting the above I received the error : error: You should not use mingw32 for gcc >= 4.6.0. Use mingw64 instead, e.g.:python setup.py build_ext -c mingw64 I altered the [build] entry in the distutils.cfg file to read compiler=mingw32 and had success. – OYRM.

  2. MINGW refers to executables that are compiled using the MINGW GCC Compiler and target the Win32 API. MSYS2 refers to executables that are compiled by MSYS2 GCC Compiler and make use of a POSIX emulation layer.

  3. By setting the CC and CXX environment variables, you are telling Python's distutils (which is used by pip for building C/C++ extensions) to use the MinGW gcc and g++ compilers. This should allow you to compile Python packages with MinGW's gcc when needed.

  4. Finally, tell Python to use MinGW as the default compiler (otherwise it will try for Visual C). If Python is installed to “c:\Python27”, create a file named “c:\Python27\Lib\distutils\distutils.cfg” containing: [build] compiler = mingw32.

  5. Jun 30, 2020 · It would be good to be able to run them with MinGW instead, or to reduce MSVC strongly in size. There was a workaround until Python 3.4 which might also be an approach now: Use MinGW compiler till Python 3.4 by adding a “distutils.cfg” to the folder “\Lib\distutils” in Python install directory.

  6. Feb 6, 2023 · Installing MinGW Tools for C/C++ and Changing Environment Variable. Last Updated : 06 Feb, 2023. MinGW is a native C/C++ compiler (GCC) which have free distributable import libraries and header files for building native Windows applications. In this tutorial, we are going to install MinGW for C/C++.

  7. People also ask

  8. Sep 5, 2022 · You should almost always just use the default/preferred compiler for your OS. So Visual C++ on Windows, GCC on Gnu/Linux, and LLVM on Mac. There's occasions where this isn't feasible or desirable, but you won't encounter those while learning the core language and standard library.

  1. People also search for