When searching through your favorite search engine on the Internet, I came up with a better approach to quickly add MinGW-x64 to 64-bit Windows. At Sourceforge MSYS2 .
Following the installation instructions and getting the latest packages, there may be a timeout on the source mirror site Sourceforge. If so, follow the mirrored site updates and update the three pacman text files in the appropriate MSYS2 directory (for example, / etc / pacman.d). Then, proceed to complete the package upgrade from the MSYS2 installation instructions .
MSYS2 packages have things like gcc, llvm, make, dmake, etc. The following is a command used from the MSYS2 command line (for example, bash) to install the GNU make utility:
$ pacman -S msys/make
The location of the executable to be located will be: /usr/bin inside the MSYS2 command shell. As for setting up Netbeans for the location of make.exe, the path to Windows is:
MSYS2 installation directory\usr\bin\make.exe
(e.g. C:\msys64\usr\bin\make.exe ).
To successfully create C ++ with Netbeans, I used the GNU make package (e.g. msys / make). Then, in order to use the default files that Netbeans manages and not interfere with other C ++ compilers in your Windows installation (e.g. Visual Studio, Intel, CLang from Visual Studio, etc.), run Netbeans from the MinGW- shell x64 provided by MSYS2. So environment variables and other things like:
ls
rm
mkdir
will indicate success and compilation in the Netbeans internal terminal window. I opened the Win64 MinGW-w64 shell by going to the installed shortcut from the MSYS2 installation. Then inserted into the command line of the MinGW-x64 shell, the value of the Target property from the Windows Netbeans desktop shortcut:
$ "C:\Program Files (x86)\NetBeans 7.4\bin\netbeans.exe"
And then, finally, it can create the appropriate debug and release object and executable files. I also changed the output of the Netbeans project to the MSYS2 directory structure. Then run the executable file in the MSYS2 MinGW-x64 shell. Starting from NetBeans IDE causes this error message:
Unable to start pty process: application terminated with exit code -1073741515 (0xc0000135).
If the MSYS2 path was in the PATH environment variable of the computer system, this error may not have occurred.