How to compile C program on command line using MinGW?
It indicates it couldn’t find gcc.exe. I have a path environment variable set to where MinGW is installed Maybe you haven’t set the path correctly? shows the path to gcc.exe? Otherwise, compilation is similar to Unix: