In This Chapter, We Are Going To Learn How To Setup C Development Environment Using
In This Chapter, We Are Going To Learn How To Setup C Development Environment Using
DevC++ tool in your machine and how to compile and execute a C program by your own.
Below topics are covered in this page.
1.
2.
3.
4.
What is C compiler?
List of C/C++ compilers for Windows Operating System
Steps to install DevC++ tool to compile and execute C programs
List of C/C++ compilers for UNIX/LINUX Operating System
Note:
together in same
provides Integrated
C++ programming
in same Integrated
1. What is C compiler?
o
o
o
o
o
o
o
o
o
There are so many compilers available in market for Windows operating system. We
are listing some of them here for your reference.
1.
2.
CCS
C
3.
4.
5.
6.
Digital
7.
GCC
8.
MikroC
9. Portable C Compiler, Power C, QuickC, Ritchie C Compiler, Small-C
AMPC
Compiler
ch
clang
Cygwin
mars
compiler
Compiler
6. Choose the destination folder as C:\Dev-Cpp (It is there by default) and click
Install button and finally click finish button. You can modify this destination folder path
if you want.
7. Once installation is completed, go to your desktop and right click on My Computer ->
properties -> advanced system settings -> advanced tab. Then, click on Environment
Variables button and then New. You will get a popup window as shown below.
Change the System variable as given below.
Variable name: PATH
Variable value: C:\Dev-Cpp\bin;
8. Once you done with above settings, then you can start Dev C++ by clicking start >
Dev C++ as shown below.
9.Open Dev C++ window and click on file -> new -> project. Then, select Console
Application. Choose C project and Make Default Language check box.
10. Click on file -> new -> source file and type a sample program and save it as sample.c
11. Click on Compile & Run button to compile and execute our program as shown
below.
12. Output window will be opened as below when there is no compilation error. Use
Enter button to come back to the program window.