Runnnig this shell and typing gcc -v will give you some information on what you have installed. Once this is done you will have a new shell in the /msys64 folder called mingw64.exe or mingw32.exe (if you installed the i686 toolchain). It goes into the /usr/bin directory pacman -S make Eclipse will use make to run it's autogenerated makefiles. # Install make if it's not already installed. # This should install the toolchain into the /msys64/mingw64 folder pacman -S mingw-w64-x86_64-toolchain You can search the available packages using the command pacman -Ss string_to_search. There are a couple of ways to go about this - you can either download the individual packages (gcc, gdb …) or you can download all the relevant packages in one shot using the mingw-w64-x86_64-toolchain or mingw-w64-i686-toolchain depending on what you want to use. Download the mingw64 packages using the MSYS2 package manager pacman. The Mingw-64 project provides versions of GCC that are capable of running natively on Windows and building Windows 64/32 bit target binaries, and MSYS2 has great support for mingw-64. Next you need to install GCC + other utilities (MAKE, GDB, BINUTILS, … etc) for windows. At the end of it you should have a working MSYS2 shell. Head over to the MSYS2 website and follow steps 1 - 7. This post will illustrate exactly how easy it is. Setting up the Eclipse CDT environment to use these compilers is also very easy. Running GCC or Clang on Windows has never been easier thanks to the MSYS2 project.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |