- First download WinBGIm from http://winbgim.codecutter.org/ Extract it.
- Copy
graphics.h
andwinbgim.h
files in include folder of your compiler directory - Copy
libbgi.a
to lib folder of your compiler directory - In code::blocks open Settings >> Compiler and debugger >>linker settings
click Add button in link libraries part and browse and selectlibbgi.a
file - In right part (i.e. other linker options) paste commands
-lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32
- Click OK
For detail information follow this link.