This document provides instructions for compiling and running a C program using MinGW on Windows, including setting the path to include MinGW's bin directory, using gcc to compile a source code file into an executable file, and running the executable file by specifying its name and directory.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
603 views
MinGW Commands
This document provides instructions for compiling and running a C program using MinGW on Windows, including setting the path to include MinGW's bin directory, using gcc to compile a source code file into an executable file, and running the executable file by specifying its name and directory.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1
path=%path%;C:\MinGW\bin;
to make the command line see the installation dire
ctory of MinGW =================================== cd Desktop/ OR cd D:\ %$%&*^%* while : %$%&*^%* is the sorce code directory this command is used to point to source code directory note : write only the directory without including the file name =================================== gcc "#########" -o "$$$$$$" while : ######### is the sorce code directory including the source code file .c $$$$$$ is executable file directory including the .exe file name note : make sure that ####### and $$$$$$ are between quotation marks note : -o is dash ohh not dash zero ! this command is used to build the exe file =================================== .\ $$$$$$$$$$$ while : $$$$$$ is executable file name .exe this command for runing the executable file ================================= cls to clear the command prompt ================================ "#################" to run the executable file while ##### is the directory of the executable file including the name of the fi le $$$.exe