0% found this document useful (0 votes)
21 views6 pages

Adding Graphics Library in Dev CPP For Windows 10 Tutorial

computer graphics setup procuders

Uploaded by

mamushe710
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views6 pages

Adding Graphics Library in Dev CPP For Windows 10 Tutorial

computer graphics setup procuders

Uploaded by

mamushe710
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

For Windows 10 Tutorial:Dev CPP “Add Graphics properties in Dev Cpp projects”

1. Step 1
Install the 64 bit version of Dev Cpp From the following link.
https://vulms.vu.edu.pk/Courses/CS602/Downloads/Dev-Cpp%205.9.2%20TDM-
GCC%204.8.1%20Setup.rar
2. Step 2 Open Dev CPP

Make sure that 32-bit release mode should be selected.

3. Create new project.


4. Go to>File>New>Project

Select Empty project

5. Give name and press OK

Save project In any folder.


6. After creating project. Put your code in file as follows. A CPP file will
automatically be created. Put your code in it.

7. To add graphic.h header file, Download “graphics library” zip file for 64 bit
version of Dev C++ from following link.

https://vulms.vu.edu.pk/Courses/CS602/Downloads/Graphics%20library%20for
%2064%20bit%20Dev%20CPP.rar

Extract the zipped folder, you will find two files (graphics.h & winbgim.h) place
both files in the include folder of DevCPP at following path, I have installed
DevCPP at drive E:

E:\Dev-Cpp\MinGW64\include

Put the third file “libbgi.a” file in lib folder of Dev CPP. At following path As I
have installed Dev CPP at drive E:

E:\Dev-Cpp\MinGW64\lib

8. Secondly also place both header file (graphics.h & winbgim.h) in the include
folder at following path. I have installed DevCPP at drive E:

E:\Dev-Cpp\MinGW64\x86_64-w64-mingw32\include

Put the third file “libbgi.a” file in lib folder of Dev CPP. At following path As I
have installed Dev CPP at drive E:
E:\Dev-Cpp\MinGW64\x86_64-w64-mingw32\lib

Now you will be able to include graphics.h header file without any error.

9. Add graphics parameters.

Go to>Projects>Project Options>Parameters Tab

10. Select the parameters tab


11. Add the following parameters to the linker option

 -lbgi
 -lgdi32
 -luser32
 -lcomdlg32
 -luuid
 -loleaut32
 -lole32

12. Paste them in linker Tab.

13. Click ok.

14. Now run the project it will be compiled without any error.
15. Before executing it will ask you save the project if you have not already saved it.

You might also like