Showing posts with label How to include graphics.h in CodeBlocks. Show all posts
Showing posts with label How to include graphics.h in CodeBlocks. Show all posts

10/09/2019

How to include graphics.h in CodeBlocks


Compiling graphics codes on CodeBlocks IDE always truncate an error: “Cannot find graphics.h”. This is because graphics.h header file is not available in the library folder of CodeBlocks Compiler. To successfully compile graphics code on CodeBlocks IDE, you have to setup winBGIm library.

How to include graphics.h in CodeBlocks ?

Please follow below steps in sequence to include “graphics.h” in CodeBlocks to successfully compile graphics code on Codeblocks Compiler.

Step 1: To setup “graphics.h” in CodeBlocks, first set up winBGIm graphics library. Download WinBGIm from this link

Step 2: Extract the downloaded file. There will be three files:

  • graphics.h
  • winbgim.h
  • libbgi.a
Read More »
Designed by OluwaThank_U.