As already described in the previous tutorial, the compiler is the translator source code into machine language to be recognized by the computer. One of the compiler that can be used is GCC, here I'll explain how to compiler GCC can be used well on your computer.
For windows 7 :
- Download file GCC compiler which is known by the name of MinGW.
- Then install into your PC .
- When the installation is placed on drive C: (not in program files)
ex : C:\MinGW Ex è C: \ MinGW
- Then right click on my computer ==> properties
- Select advanced
- In advenced dialog box, click the environment variables
- In the system variables, double click the path variables
- Type (C: \ MinGW \ bin), do not forget to add a semicolon (;) before the letter C
- Restart your PC
To use it:
1. Open a commend prompt
2. open the drive where you put the file C that you created.
3. Type (gcc *****.c -o *****.exe)
example : ( gcc calculator.c –o calculator.exe )
4. Your program is ready for use.
Note: (****) extention file name .c
download MinGW whitout Installer here...
You can use dev c++ to compile
0 comments:
Posting Komentar