Monday, 8 October 2012

How to setup graphics.h library in devcpp compiler

having dout how to use  " graphics.h " library in "devc++"

solution:

1.open devc++ compiler
2.select new project and select empty project
3.download grapgics library functions graphics.h and libbgia from the link provided
4.http://www.cs.colorado.edu/~main/bgi/dev-c++/
5.after downloading copy graphics.h library to c:/devcpp/include  folder
6.libbia file to "c:/devcpp/lib folder
7.write a sample graphic program or download a sample programe which i compiled and uploaded to the following mediafire link
8.http://www.mediafire.com/?d07ihy86g29orq8
9.go to project on toolbar->project options->parameters->in linker section paste the following :

-lbgi
-lgdi32
-lcomdlg32
-luuid
-loleaut32
-lole32

10.now compile and your programme should execute

11.note:if you download the programe you probably get error because you will not have the images that i importred so better to write your sample and simple programe and verify

No comments:

Post a Comment