It contains interesting graphics programs, implemented using graphics.h in C++
Follow these steps:
-
Uninstall the previous code::blocks
-
Also don't forget to delete the CodeBlocks folder from appdata ("C:\Users\username\AppData\Roaming\CodeBlocks")
-
Install the new code::blocks from the link https://sourceforge.net/projects/codeblocks/?source=top3_dlp_t5 (updated)
-
Download graphics.h files from here
-
Copy 'graphics.h' & 'winbgim.h' to the folder "C:\Program Files (x86)\CodeBlocks\MinGW\include" and 'libbgi.a' to "C:\Program Files (x86)\CodeBlocks\MinGW\lib"
-
Open CodeBlocks : Settings -> Compiler
a. Enable c++ 11
a. Add "C:\Program Files (x86)\CodeBlocks\MinGW\lib\libbgi.a" in 'Link libraries'
b. Add in 'Other Linker Options':
-lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32
-
Press OK to exit
-
Now graphics.h can work with latest c++11 features also