Follow these steps to install and use graphics.h in windows :
This version of graphics.h is the modified error free one.
Download the graphics.h file from this link :
http://www.mediafire.com/?nd3whqoqb36h8ou
- First install CodeBlocks
- Then download WinBGIm and extract it.
- Copy and paste graphics.h and winbgim.h files to include folder of your compiler directory.
Mine was C:\Program Files (x86)\CodeBlocks\MinGW\include
- Copy and paste libbgi.a to lib folder of your compiler directory.
Mine was C:\Program Files (x86)\CodeBlocks\MinGW\lib
- In code::blocks open Settings >> Compiler and debugger >>linker settings
- click Add button in link libraries part and browse and select libbgi.a file
- In right part (ie. other linker options) paste commands -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32
- click Ok
This version of graphics.h is the modified error free one.
Download the graphics.h file from this link :
http://www.mediafire.com/?nd3whqoqb36h8ou