You are on page 1of 15

10/27/2018 Installing and Using Dev C++ and Allegro Game Library

Installing the new Orwell Dev C++


This is a temporary correction to installation instructions for Dev-C++. For now, I am leaving the old instructions below.

Okay, so briefly, here is what you need to do:

1. Go to the Orwell Dev-C++ website (link opens new window)


2. Scroll down the page (below what is currently the 5.3.0.4 Released announcement) for the Download heading
3. You can select either of the first two options:
The setup which includes MinGW32 4.7.0 can be downloaded here (25MB).
The setup which includes TDM-GCC x64 4.6.1 can be downloaded here (35MB).
If you use the 64-bit compiler (the second option), you may need to force 32-bit when compiling with cisp360 program object
code that I provide for some of your exercises. Under Tools/Compiler Options you will need to select the TDM-GCC 32bit
profile.
4. Click on the here link corresponding to the compiler you want, then save the file.
5. Execute the Setup file, and follow directions...

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. CISP 499 students will need to install the Allegro
Game Library as well.

Downloading and Installing Dev C++

https://ic.arc.losrios.edu/~antosd/cisp360/devcppInstall/index.html 1/15
10/27/2018 Installing and Using Dev C++ and Allegro Game Library

Go to the Dev C++ compiler host site. http://www.bloodshed.net/dev/devcpp.html

https://ic.arc.losrios.edu/~antosd/cisp360/devcppInstall/index.html 2/15
10/27/2018 Installing and Using Dev C++ and Allegro Game Library

Scrolldown to select the Dev-C++ compiler download link.

https://ic.arc.losrios.edu/~antosd/cisp360/devcppInstall/index.html 3/15
10/27/2018 Installing and Using Dev C++ and Allegro Game Library

Choose a local sourceforge mirror for downloading.

Install Dev C++ by double clicking the dev-cpp setup icon. A Dialog box will complain about an Unknown Publisher; just click on
the Run button anyway.

You will then get a warning about installing over a previous version even if one does not exist. Make sure you uninstall if you DO have
an older version—delete C:\Dev-Cpp if necessary.

https://ic.arc.losrios.edu/~antosd/cisp360/devcppInstall/index.html 4/15
10/27/2018 Installing and Using Dev C++ and Allegro Game Library

Select your preferred installation language. This language is only used during installation, and does not affect the language used in the
Dev C++ compiler.

Agree to the software usage terms.

Just select Next to install; or if you think you know what you are doing, you may choose specific components.

https://ic.arc.losrios.edu/~antosd/cisp360/devcppInstall/index.html 5/15
10/27/2018 Installing and Using Dev C++ and Allegro Game Library

Choose a destination folder. It is probably best to use the default, C:\Dev-Cpp.

During installation you will see this dialog window.

You may wish to install the application for all users, or just one user. Select your choice accordingly. (No installs for the currently logged
in user.)

Starting up Dev C++

https://ic.arc.losrios.edu/~antosd/cisp360/devcppInstall/index.html 6/15
10/27/2018 Installing and Using Dev C++ and Allegro Game Library

You can start Dev C++ from your start menu by choosing Start->All Programs->Bloodshed Dev C++. If you are running Dev C++
for the first time, you will need to answer the questions prompted by the dialog box. You may proceed to create your first C/C++
program.

https://ic.arc.losrios.edu/~antosd/cisp360/devcppInstall/index.html 7/15
10/27/2018 Installing and Using Dev C++ and Allegro Game Library

Now that you have installed the Dev C++ IDE, you can now test it out by writing and compiling Your First Dev-C++ Program

For CISP 499 Students


CISP 499 students will need to install the Allegro graphics library to do work on their home computers. This library is not needed for
CISP 360 students.

Installing the Allegro Graphics Library from Source Code

I recommend that you install the pre-compiled library if possible (described in the next section). However, it is possible that it may not
work for your operating system, so you may need to do the installation manually by compiling the library from source code. To do this,
make sure that you get the correct or latest versions of the software, direct your browser to http://alleg.sourceforge.net/wip.html, and
obtain all420.zip (the Alegro source code), and dx80_mgw.zip (direct X compatibility library). Install as directed.

Installing the Pre-Compiled Allegro Graphics Library

Go to http://devpaks.org:

https://ic.arc.losrios.edu/~antosd/cisp360/devcppInstall/index.html 8/15
10/27/2018 Installing and Using Dev C++ and Allegro Game Library

1. Select Allegro

2. Select Allegro Library version 4.2.0

https://ic.arc.losrios.edu/~antosd/cisp360/devcppInstall/index.html 9/15
10/27/2018 Installing and Using Dev C++ and Allegro Game Library

3. Choose the download link, choose a local mirror, then download to a temporary location on your computer.

You may also wish to get the Allegro supplement Library version 4.2.0 which has many examples of Allegro programming.

Once the DevPaks have been downloaded, Start Dev C++ and select the Tools menu.

https://ic.arc.losrios.edu/~antosd/cisp360/devcppInstall/index.html 10/15
10/27/2018 Installing and Using Dev C++ and Allegro Game Library

Select Package Manager to get the following dialog box, then click on the install button.

You will see a file open dialog box Please select a package to install. Browse to where you downloaded the Allegro devpak file,
select it, then click on the Open button.

https://ic.arc.losrios.edu/~antosd/cisp360/devcppInstall/index.html 11/15
10/27/2018 Installing and Using Dev C++ and Allegro Game Library

The Dev-C++ Package Installation Wizard appears. Select Next to begin installation.

Select Next after reading the README text.

https://ic.arc.losrios.edu/~antosd/cisp360/devcppInstall/index.html 12/15
10/27/2018 Installing and Using Dev C++ and Allegro Game Library

Select Install after reading the license agreement.

Finally, select Finish to exit the Installation Wizard after successful installation.

Exit the package manager to return to the main Dev-C++ compiler window.

Compiling an Allegro Graphics Application

You are now ready to create your first Allegro graphics application. Select New Project from the Dev C++ File menu, choose the
Multimedia tab.

https://ic.arc.losrios.edu/~antosd/cisp360/devcppInstall/index.html 13/15
10/27/2018 Installing and Using Dev C++ and Allegro Game Library

Create a shell main() program for your Allegro program by clicking on Allegro Application (DLL)

Add some code to the main() for a little feedback when running your first program. Try adding allegro_message("hello"); as
shown. Compile and run. You should see a dialog box your message displayed in it.

https://ic.arc.losrios.edu/~antosd/cisp360/devcppInstall/index.html 14/15
10/27/2018 Installing and Using Dev C++ and Allegro Game Library

https://ic.arc.losrios.edu/~antosd/cisp360/devcppInstall/index.html 15/15

You might also like