This page shows you how to get Allegro and how to install it to run with DevC++. First of all make sure that you installed Dev-C++ correctly (not in directory c:\Dev-C++) and that you have a current version. To check see these instructions.
The following description has been copied mostly from Allegro.cc Forums.You will need the following resources. You may start downloading them before you read further.
Unzip the latest Allegro WIP (or stable release if available) in the Dev-C++ directory (this will create the directory C:\devcpp\allegro).
Open a DOS prompt. This is done by running the comamnd: C:\COMMAND.COM (or cmd.exe for Windows 2000 and Windows ME). You can create a shortcut to it on your desktop or start menu if you like. Go to the newly created Allegro directory (i.e. "CD c:\devcpp\allegro").
At the DOS prompt type "fix mingw32" (without the quotes). This will prepare the Allegro library to work with Dev-C++.
At the DOS prompt type "make" and watch Allegro compile. This may take a few minutes.
Once Allegro is compiled, you'll need to install it. Installing Allegro is a simple matter of typing "make install" at the command prompt.
Ok, now that Allegro is properly set up and installed, we can create our first Allegro program (yay!)
You should now see a sample code in a window. Delete all this sample code since you won't be needing it (Allegro is much simpler to use than this).
Write a small Allegro program:
#include "allegro.h"
int main() {
allegro_init();
allegro_message("Hello World!");
return 0;
}
END_OF_MAIN();
You now need to tell Dev-C++ that you'd like to make a program that uses Allegro. For that, go in the Project Options screen (Project/Project Options menu), then click on "Load Object Files". You need to select the file called liballeg.a (of liballd.a for the debug mode); the file should be in C:\Dev-Cpp\lib. Notice it's a .a file, and not a .o file, so you'll need to get the file dialog to show all files.
Compile your project! Simply click on the green check mark on your Dev-C++ toolbar. Correct any syntax errors in your code, then click on "Execute" to run the program. If all worked you will see a message box pop up with "Hello World" inside of it. And we're done!
Recommended reading:
allegro.txt - The Allegro API, and main documentation
faq.txt - Frequently Asked Questions. There you will find answers to most asked questions about Allegro
help.txt - How to properly ask for help, if ever you need to.
And most importantly, have fun!