setup graphics.h in codeblocks code example Example: run graphics code in codeblocks initgraph(&gdriver,&gmode,"..\\bgi\\");