how to include graphics.h in Code Blocks(error header file graphics.h)?

 solve  the  error :- header file <graphics.h> error in code blocks

step 1 :- Download WinBGIm .
step 2 :- Extract the file .
1. graphics.h
2. winbgim.h
3. libbgi.a
step 3 :- copy the files graphics.h and winbgim.h and paste into this loacation
C:\Program Files (x86)\CodeBlocks\MinGW\include

step 4 :- copy the libbgi.a file and paste into this location
C:\Program Files (x86)\CodeBlocks\MinGW\lib

step 5 :- code block open and go to Settings>> Compiler >> Linker settings

step 6 :- click add button and paste the libbgi.a file location
C:\Program Files (x86)\CodeBlocks\MinGW\lib

step 7 :- In right part paste the this commands
–lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32

step 8 :- ok.
step 9 :- Try compiling a graphics.h program , still there will be an error. To solve it, open graphics.h file with Notepad . replace that line with this line : int left=0, int top=0, int right=INT_MAX, int bottom=INT_MAX,

इन्हे भी पढ़िए !

Leave a Reply

Your email address will not be published. Required fields are marked *