In order to run graphics programs under Dev-C you have to download WinBGIm files. Download the files listed below. Graphics.h (download to C: Dev-Cpp include) libbgi.a(download to C: Dev-Cpp lib) Once you download the files. Now you have to place into the correct location in Dev-C installation folder. Try to locate include and lib folder. Installing and Using Dev C and Allegro Game Library. This page describes how to install both the Dev C Integrated Development Environment (IDE) and the Allegro Game Library.CISP 360 students will only need to follow the directions to install the Dev C IDE.
- Latest Version:DEV-C++ 5.11 LATEST
- Requirements:Windows XP / Vista / Windows 7 / Windows 8 / Windows 10
- Author / Product:Bloodshed Software / DEV-C++
- Old Versions:
- Filename:Dev-Cpp 5.11 TDM-GCC 4.9.2 Setup.exe
- MD5 Checksum:581d2ec5eff634a610705d01ec6da553
- Details:DEV-C++ 2020 full offline installer setup for PC 32bit/64bit
The app is an open-source IDE environment, offering software solutions and the necessary tools for C++ app development. However, be aware that its toolset is focused more on novices and basic programming, and that open source community has not updated its toolset for a considerable time. Still, what is present in its latest version represents a highly-capable C++ IDE that could be used for years without encountering any issue.
If you are a novice, are a student who wants to create C++ project in a stable and easy to use software environment, or even if you are a seasoned programmer who wants to access C++ programming inside small IDE that will not strain your computer resources, DEV-C++ represents a perfect choice. It has all the required tools and feature sets for creating small to mid-sized apps.
It runs on all modern versions of Windows and can be used without any restrictions for free. It was originally developed as an open-source fork of the Bloodshed Dev-C++ IDE.
Installation and Use
Even though DEV-C++ is filled with advanced compiler, debugger and a wide array of dev tools, it’s installation package is quite small (only around 50 MB) and therefore can be easily installed on any modern Windows PC or laptop. Just follow the onscreen instructions, and in mere seconds DEV C plus plus will be ready for running. Other more developed modern IDE environments, on the other hand, require much more storage space, and their installation can run for minutes.
Once up and running, you will be welcomed in a user-friendly interface that can be additionally customized to better fit your needs. The main window of the app follows the basic structure of many other modern IDE environments, with top row of dropdown menus and buttons that are shortcuts to its many built-in tools, a large vertical three-tabbed area for managing Projects, Classes and Debug listings, and of course, the main project area (with support for tabs) where you can start programming your apps. Both the app and the current project can be customized extensively. App Options window features tabs for Genera, Fonts, Colors, Code Insertion, Class Browsing, and Autosave customizations. Environment Options feature tabs for General, Directories, External Programs, File Associations, and CVS support customization.
Features and Highlights
- Fully-featured IDE for developing C++ apps.
- User-friendly interface with many tools for managing project development.
- Resource-light and unobtrusive feature set.
- Focused on novices and mid-level programmers who want stability and reliability.
- Powerful compiler and debugger.
- Compatible with all the modern versions of Windows OS
I. Creating a Project
Using Allegro with Dev-C++ is simple once you get the workspace configured. For most applications, you will want to use a 'Windows Application' and link against the optimized library. We are assuming you already have Allegro already installed for MinGW32.
A. Configuring a Windows Application
If you want to create a game with graphics, then you need to create a `Windows Application'workspace.
- Open Dev-C++
- Click on File / New / Project
- Choose Windows Application
- Enter your Project Name and hit 'OK' (Fig. 1)
Your workspace has been created with a default `main.cpp' file containing pre-written code.You will not need any of that, because Allegro is much simpler and will hide the Win32 codefrom you. Remove all the text in the file.
The only thing left to do is to link to the Allegro library. You can either link to the library staticallyor dynamically. A static link will mean your executable will be larger, but the DLL will not be needed. Adynamic link will mean the executable is smaller, but the Allegro DLL must be distributed with the project. In short, you only need to do one or the other. If you are not sure, then linking dynamically is the safer option.
1. Dynamic Linking
- Click on the `Project' / `Project Options' menu
- Under Linking options enter `-lalleg'
- Click `OK' (Fig. 2)
2. Static Linking
- Click on the `Project' / `Project Options' menu
- Under Linking options enter `-lalleg -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lole32 -ldinput -lddraw -ldxguid -lwinmm -ldsound'
- Click `OK'
The workspace is entirely configured now! Click the `File' / `Save All' menu to save the project. Now, skip down to the section entitled 'Compiling Source Code' to get your first program compiled.
II. Compiling Source Code
If you followed the steps above, you should already have a blank file called `main.cpp'. If not, create a new source file.
Dev C++ For Windows 10
- Enter the following code:
- Compile and Run the program. (F9)