-
Allegro
I'm having some problems with allegro. I tried setting it up on Dev-C++ but when I compile I get errors. On how to set it up at www.allegro.cc it said I needed to include an *.a file into the project for somnething but I don't know how to do that. So I decided to try DJPGG but I can't even get DJPGG to compile anything. Can someone give me instructions on how to install and COMPILE allegro in Dev-C++?
-
On Dev c++, did you get it to install properly, following the instructions at allegro.cc?
If so, did you set up the linker properly by typing in "-lalleg"?
To do this, int he menu goto PROJECT -> Project Options. DOwn the bottom, it should have "Linker Options/Optional Libs or Object files:" Type in "-lalleg" in the textbox below this. This will set the project up to link with allegro.
If you didnt install properly, go back to allegro.cc and follow the installation guide EXACTLY as it says, and then try it again. If you still get a compiler error, past the exact error message here.
-
When I tried compiling the project it doesn't do anything. When I hit compile again it says its compiling. I'm pretty sure I installed allegro right. I got the binaries where the readme.txt said that I just had to move the stuff in the 'include' and 'lib' directories to the ones in the MinGW folder and move the 3 *.DLL's to my Windows directory. I did all that.
P.S. I got a file called 'Makefile.win' in the directory my project was in when I tried compiling it.
-
In your project, did u:
*Include the allegro header <allegro.h>?
*Include the linker information i explained above?
EDIT: When you install allegro, you need to make sure that Dev C++ is installed in a folder like "C:\Dev-cpp\".
I think that it will cause errors if you have it with the "+" sign in it, ie "c:\Dev C++".
-
1: Included "allegro.h"
2: Included linker info
3: Dev-C++ installed in "C:\Dev-Cpp"
-
It should be
Code:
#include <allegro.h>
not
Code:
#include "allegro.h"
If you have done that, then the only thing i can suggest is trying to reinstall it again, and make sure you follow every step closely.... Sorry :)
-
There is a installer program somewhere on the Dev-C++ site that will set everything up for you, then all you do is create a new project, and select Allegro.
-
it needs to be updated to the newest stable version
-
It will work with the newest Dev-C++ version, but you need to modify alot of stuff. Get an older version of Dev-C++ (4) and it will work easily.
I am using the version of allegro that comes with this installed, though I am not using the IDE. What are some good reasons to upgrade to the newest version of Allegro?