Adding Graphics Library in Dev CPP For Windows 10 Tutorial
Adding Graphics Library in Dev CPP For Windows 10 Tutorial
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
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.
-lbgi
-lgdi32
-luser32
-lcomdlg32
-luuid
-loleaut32
-lole32
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.