How to use MinGW compiler in windows environment
Title
Question
Dear Sir/Madam, I have performed all the steps as mentioned in the installation and instruction sheets regarding installation of MinGW compiler in windows operating system. In the tutorial the process to execute and create the program in linux is expained but there is no demonstration of how to use MinGW compiler in windows environment. So please explain this.
C-and-Cpp First-C-Program 00-01 min 0-10 sec
Answers:
Hello Suneel,
Pls visit the following link for MinGW compiler in Windows.
http://spoken-tutorial.org/media/videos/43/C-and-Cpp-Installation-Sheet-English.pdf
Nancy Varkey
Pls visit the following link for MinGW compiler in Windows.
http://spoken-tutorial.org/media/videos/43/C-and-Cpp-Installation-Sheet-English.pdf
Nancy Varkey
Hello Suneel,
Pls visit the following link for instructions on using MinGW compiler in Windows.
http://spoken-tutorial.org/media/videos/43/C-and-Cpp-Installation-Sheet-English.pdf
Nancy Varkey
Pls visit the following link for instructions on using MinGW compiler in Windows.
http://spoken-tutorial.org/media/videos/43/C-and-Cpp-Installation-Sheet-English.pdf
Nancy Varkey
Hello Nancy,
The link as mentioned by you only explains how to install this MinGW compiler in windows. I have also successfully completed all 33 steps as mentioned in the installation sheet. Now the next thing is how to use this compiler. So please demonstrate that.
The link as mentioned by you only explains how to install this MinGW compiler in windows. I have also successfully completed all 33 steps as mentioned in the installation sheet. Now the next thing is how to use this compiler. So please demonstrate that.
Login to add comment
Dear Suneel,
Pls visit the following link for detailed instructions on how to use the C/C++ spoken tutorials and MinGW compiler in Windows.
http://spoken-tutorial.org/media/videos/43/C-and-Cpp-Instruction-Sheet-English.pdf
Nancy Varkey
Pls visit the following link for detailed instructions on how to use the C/C++ spoken tutorials and MinGW compiler in Windows.
http://spoken-tutorial.org/media/videos/43/C-and-Cpp-Instruction-Sheet-English.pdf
Nancy Varkey
. Write the program in Notepad++ in some folder in a drive (E.g. Create a folder program inexampleD drive)
#include<stdio.h>
void main()
{
printf("hello");
}
Give a file name Sample.c and Click File menu and saveit
Take command prompt by typing cmdin Run
Then change directory to the place where you saved the file (E.g your file Sample. c is in D:\\\\program)
Type
D:
cd program
(This will give a prompt D:\\\\program>)
2. COMPILE THE PROGRAM
Type
gcc Sample.c -o sample
(Here sample.exe will become the name of the output file)
press enter key
This will compile the program
If no error nothing will be shown. Otherwise it will show error details then correct the error and again compile)
/If no error RUN the program
type
sample.exe
Regards
Renetha J.B
Login to add comment