How to Execute Graphics in Dev CPP?
Dev CPP, Code Block & other software generally not able to execute graphics and its function. This is happen because the software you are using may not have Graphics.h header file in library. To solve this problem, we have to include graphics library into the library directory. This trick works for Turbo C, Dev C++, Code Block and other software also.
Sometimes you have to add some parameters also to run the program fast. To know how to do this, just follow the steps given below :
Steps to Follow :
- Install Dev-C++. I installed from the Version 4.9.9.2 Setup File.
- Download graphics.h to the include/ sub-directory of the Dev-C++ directories.
- Download libbgi.a to the lib/ In order to use the WinBGIm sub-directory of the Dev-C++ directories.
- Whenever you #include <graphics.h> in a program, you must instruct the linker to link in certain libraries. The command to do so from Dev-C++ is Alt-P. Choose the Parameters tab from the pop-up window and type the following into the Linker area:
-lbgi
-lgdi32
-lcomdlg32
-luuid
-loleaut32
-lole32
You can now compile and run programs that use the WinBGIm graphics library, such as this one that opens a small window.
Enjoy the hack! share this trick with your friends by sharing buttons given below….
No comments:
Post a Comment