You may be wondering how to add graphics.h in dev C++. Dev C++ does not support BGI Graphics we have to include graphics library manually. Here are few steps you must follow before using graphics.h header file. .
Sep 28, 2014 Dev C is Software Developing Tool or is a full featured Integrated Development Environment (IDE) for C-C programming language.Dev C is GCC based compiler to use create a simple programs.
Download following files to the directories mentioned:
graphics.h Directory:> C:Dev-Cppinclude
libbgi.a Directory:> download to C:Dev-Cpplib)
Creating Project:
- STEP 1: Open DEV C++ Compiler
- STEP 2: Creating New Project
i. Go to File>New>Project as shown in following figure:
ii. Create New Project 'DialogBox' will appear select 'empty project'
and name your project in the space provided. Select Language
C or C++ according to your need. Press Ok and select the
location where you want to save.
and name your project in the space provided. Select Language
C or C++ according to your need. Press Ok and select the
location where you want to save.
- STEP 4: Set linker parameters
will appear than select 'Parameters' option and type following in
'Linker' field.
-lbgi
-lgdi32
-lcomdlg32
-luuid
-loleaut32
-lole32
Press OK, you are now able to use graphics.h functions in your code.
- STEP 5: Testing sample Program
In new versions of dev c++ compiler automatically adds one source file to
project. If there is no any existing source file simply add new file By
chossing new file option from file menu. Type the following code and
save the file. I saved file as 'main.cpp' its your chooice whatever you
name it.
project. If there is no any existing source file simply add new file By
chossing new file option from file menu. Type the following code and
save the file. I saved file as 'main.cpp' its your chooice whatever you
name it.
- STEP 6: Compiling and Runing the program
If you have followed all the steps carefully after compiling and runing the
program your output should be somthing like this:
program your output should be somthing like this:
- STEP 7: Find more functions
Follow these links for more functions of graphics.h
1. http://www.programmingsimplified.com/c/graphics.h
2. http://www.cs.colorado.edu/~main/bgi/doc/initgraph.html
3. http://www.cs.colorado.edu/~main/bgi/doc/
You can comment here if you have any trouble.
You can comment here if you have any trouble.
Dev-C++ 5.11 released
It's been a while again. Enjoy the new features. :)Changes - Version 5.11 - 27 April 2015
- Fixed crash related to double clicking on a compiler error when a selection was made.
- Upgraded the default compiler to TDM-GCC 4.9.2.
- Improved startup speed.
- Fixed Abort Compilation button not working anymore.
- Fixed crash in TCppParser.CheckForTypedefStruct.
- Fixed crash in TCppParser.HandleEnum.
- Fixed some typos in the English translation (thanks to Hiro5).
- Updated the Catalan translation (thanks to Hiro5).
- Updated the Czech translation (thanks to tringi).
- Fixed some hiccups in the build process of Dev-C++ itself.
Dev C++ Download For Mac

Dev C++ Program Download
Download- The setup which includes TDM-GCC 4.9.2 (32bit and 64bit) can be downloaded here (47MB).
- The setup which does not include a compiler can be downloaded here (2MB).
- The portable version which includes TDM-GCC 4.9.2 (32bit and 64bit) can be downloaded here (34MB).
- The portable version which does not include a compiler can be downloaded here (2MB).
- The latest tested compilers can be downloaded here.
- Lastly, the source code can be found here (1MB). Alternatively, one can use git to clone any commit. Instructions can be found here.
Dev-C++ will automatically configure a 32bit and a 64bit compiler profile for you, and will select the 32bit profile if your computer does not support 64bit