MinGW Compilation - learnclang/1-helloworld GitHub Wiki

Open a command line window and navigate to the folder in which you saved the file hello_world.c.

Type the following:

gcc hello_world.c -o hello_world.exe

If everything goes according to plan, a new file called hello_world.exe will be created in the same folder. This new file is the executable file that the end user will run.