View Details. Loading. Step 1: To setup “graphics.h” in CodeBlocks, first set up the Graphics library. Download the Graphics Header Files using this Link – Download Files; Step 2: Extract the downloaded file. There will be three files: graphics.h; winbgim.h; libbgi.a; bltadwin.ru (Inluding Steps of Installtion) Step 3: Copy and paste graphics.h and winbgim.h. · If you’ve previously tried downloading graphics.h header file and pasting it in the include folder of your compiler directory, but yet still it showed error, here’s a step-by-step solution to your problem. There are a few other settings CodeBlocks wants you to make to successfully run or execute C/C++ graphics programs.
Install Dev-C++. I installed from the Version Setup File. Download graphics.h to the include/ subdirectory of the Dev-C++ directories. Download libbgi.a to the lib/ In order to use the WinBGIm subdirectory of the Dev-C++ directories. Whenever you #include graphics.h in a program, you must instruct the linker to link in certain libraries. Copy graphics.h and winbgim.h files in include folder of your compiler directory; Copy libbgi.a to lib folder of your compiler directory; In code::blocks open Settings Compiler and debugger 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. Step 4: Copy and paste graphics.h and winbgim.h files into the include folder of your compiler directory. If you have Code::Blocks installed in C drive of your computer, go through: Drive C Program files or Program files(x86) CodeBlocks MinGW include.
In this video, I am showing how to get graphics.h header file in Code bltadwin.ruad graphics.h from the link below:bltadwin.ru Step 3: Copy and paste graphics.h and winbgim.h files into the include folder of compiler directory. (If you have Code::Blocks installed in C drive of your computer, go through: Disk C Program Files CodeBlocks MinGW include. Paste these two files there.) Step 4: Copy and paste libbgi.a to the lib folder of compiler directory. 2. Explanation of Code: The first step in any graphics program is to include graphics.h header file. The graphics.h header file provides access to a simple graphics library that makes it possible to draw lines, rectangles, ovals, arcs, polygons, images, and strings on a graphical window.
0コメント