I followed this link to set up MinGW on my Windows computer: https://www.cs.odu.edu/~zeil/cs250PreTest/latest/Public/installingACompiler/#installing-the-cygwin-compiler. When I enter "g++ --version", "gdb --version", and "mingw32-make --version" it all works. I set my PATH variable to "C:/MinGW/bin". When I run "g++ -file.cpp -o file" it compiles, but when I run "./file" I get the error "'.' is not recognized as an internal or external command, operable program or batch file."
I tried doing "... -o file.exe" and trying to run it by entering "file" or "file.exe", that doesn't work.