You are on page 1of 10

Installation Guide DEV - C ++

Lab. Session

Summary
o About Dev-C++
o How to install Dev-C++ from URL
o How to install Dev-C++ from the CD
o How to access Dev-C++ from the startup menu
o How to access Dev-C++ from the icon on the desktop
o First look at Dev-C++
o Configure Dev-C++
o Our First ‘C’ program
• Write the code
• Save
• Compile
• Execute

About Dev-C++4.9.7

Dev-C++ is a fully featured graphical IDE (Integrated Development Environment), which


is able to create Windows or console-based C/C++ programs, and is developed by
Bloodshed Software.

Installation:
Note: if the older version of DEV C++ 4.0 is already installed on your machine , then
before installing this version uninstall it from the Add/Remove programs and delete the
folder from the directory.

How to install from URL

http://vulms.vu.edu.pk/courses/cs301/supporting_software/supporting_software.zip

Paste the above URL in your browser, a window will appearing asking for saving the file
on your disk OR open from current location.
Save the file and then unzip using Winzip application or you can directly open the file
from current position. If you have installed winzip on your PC then it will ask for
unzipping the file you press the button “I Agree”. Then run the devcpp4970-gcc295.exe
from the folder where you unzip the file. Remaining steps are same from step 3 of
installation from CD.
How to install Dev-C++ from the CD

1. Insert the CD labeled DEVC++4.9.7 setup CD into the CD Drive


2. Setup program will run automatically
a. If the setup program does not run automatically then double click the file
name setup.exe provided in the CD
2. The following screen will appear

3. On the ‘Software License Agreement” Dialog box Press the button labeled yes
4. The following dialog box appear

On this dialog box select option from drop down list ‘Typical’
And press button labeled ‘Next’
6. The following dialog box will appear

Setup will copy the files on the disk in folder named c:\Dev-Cpp and Dev-
C++ icon in the startup menu.. And then following dialog box appears
At this stage Dev C++ will extract all the files required for installation.

After extraction of all the files following message will appear


Click ok .
5. Then the following dialog box will appear
Check Use XP Theme option and press the button labeled ‘ok’.

This completes the installation of dev-C++ 4.9.7 on your PC

To Access Dev-C++
1. Go to the start button (located at the bottom-left corner of the window)
2. Select the option ‘programs
3. Select the sub-option ‘Bloodshed Dev-C++’
4. Take the mouse over to the program name ‘Dev C++’ and click
Thus your path to reach Dev-C++ would be as follows
Start->programs->Bloodshed Dev-C++->Dev-C++

You can also make an icon of Dev-C++ 4.9.7 on your desk top.

How to make an Icon on the desk top

5. Go to the start button (located at the bottom-left corner of the window)


6. Select the option ‘Programs’
7. Select the sub-option ‘Bloodshed Dev-C++’
8. Take the mouse over to the Program Name ‘Dev C++’. (See the figure above)
9. Hold the left button of mouse down and drag program name labeled Dev-C++
over to the desk top.
10. An icon on the desktop is created.
11. Click this icon to launch Dev-C++.
First look at Dev-C++

When we double click the icon we see the first page:

o At the top there are several drop down menus


o The first page is divided into three panels;
o The right most panel contain the names of the project files
o The left panel contain the code of the files
1. The bottom panel shows the result of the execution of the C program. It
has five tabs,

Configure Dev-C++
Before we start to write our first program let us configure it. i.e. tell the compiler where
we plan to put header files.
• Go to the "Tools" menu and select "Compiler Options".
• In the "Directories" tab, sub menu contains a tab ‘C++ includes’ enter the
location(s) of where you plan to save your files. To add a path of location
containing your files press the button labeled’…’. After that a window will appear
on your screen browse the path and then press ok , in the end press the button
‘Add’ to save the path.
• In the "Settings" tab, "Linker" link is given on left side of window click on it.
You’ll see four options on right side of the window one of them will be
"Generate debugging information" by default it is set to No, click on No you’ll
see drop down list select Yes .
This will allow you to use the debugger with your programs.

Our First ‘C’ program


write
• Click on the ‘new source file’ icon or go to the ‘file’ drop down menu and select the
option ‘new source file’
• Write your first program.

#include <iostream.h>
main()
{
cout << "Welcome to Virtual University";
}

Save
o Go to the File drop down menu
o Select option “Save as” and press enter
o Windows dialog box appear. Within this dialog box select the directory where
you want to save the file and then enter the name of your file e.g. my_first_prg and press
the save button

Compile
o Go to the "Execute" drop down menu and select "Compile"

Execute
To execute the program:
o Make an icon of ‘command prompt’ on the desktop
 Open the property window of the ‘command prompt icon
 In the ‘start in’ input field select the path of the directory where you saved your
file
 Press ‘OK’ button
o On the command prompt write the name of the executable file e.g. my_first_prg

You might also like