I'm trying to compile a .cpp file with MinGW. Here are my steps:
- I downloaded MinGW (latest release) and added "C:\MinGW\bin" to path
- I navigate to the folder with my .cpp and header files
- from there, I open windows powershell
- I run
g++ main.cpp
This seemingly completes without errors but I don't see a new .exe file appearing.
I checked the g++ version to make sure it is available and it is --> g++.exe (MinGW.org GCC-6.3.0-1) 6.3.0
I'm not sure what could be going wrong?
update: tried running it from terminal instead of powershell which gives--> cc1plus.exe Application Error: the application was unable to start correctly (0xc0000279) The same happens if I run terminal as administrator. Still no change when I introduce an error into the code.
Update 2: Updated to version 12.1.0, and now we're back to silently failing with no error