

Copy the files inside lib ( libbgi.a) and include ( graphics.h & winbgim.h) folder to respective folder of TDM-GCC compiler C:\TDM-GCC-32\lib & C:\TDM-GCC-32\include.

If you had already installed CodeBlocks () that comes with compiler then I recommend to uninstall it.Download CodeBlocks () without MinGW’s GNU GCC compiler, a separate TDM-GCC compiler and WinBGIm binaries from the download section below.So here is how you can make include work again in your CodeBlocks.

But the problem is newer version of CodeBlock have problem if we try to add Borland Graphics Interface (WinBGIm) support, which allows to run graphics in C++ program. Generally you don’t need to install compiler separately in CodeBlocks since it also comes with compiler already included.
