Skip to content

saransh37/code_block_graphics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to include graphics.h and library in Code-Blocks:

STEP – 1:

   Copy graphics.h and winbgim.h files in “include” folder of your compiler directory.
   Disk C >> Program Files >> CodeBlocks >> MinGW >> include.
   PASTE THESE TWO FILES HERE.

STEP - 2:

   Copy and paste libbgi.a to the “lib” folder of compiler directory.
   Disk C >> Program Files >> CodeBlocks >> MinGW >> lib.
   PASTE libbgi FILE HERE.

STEP – 3:

   Open Code-Blocks and Go to  Settings >> Compiler >> 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 given below and press ok
   -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32  

STEP – 4:

   Now you are ready to compile any graphic code on code block.
   Save  the code with .cpp extension and compile it.
   NOTE: use getch()  function to hold the output window.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages