Allegro

This is a discussion on Allegro within the Game Programming forums, part of the General Programming Boards category; I'm having some problems with allegro. I tried setting it up on Dev-C++ but when I compile I get errors. ...

  1. #1
    Registered User
    Join Date
    Jun 2002
    Posts
    39

    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++?
    Compiler: Dev-C++ 4.9.8.0

    -Bert

  2. #2
    fry
    fry is offline
    Registered User fry's Avatar
    Join Date
    Mar 2002
    Posts
    128
    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.
    IDE: Dev C++ 5
    Lib: Allegro
    OS: Windows 2000

  3. #3
    Registered User
    Join Date
    Jun 2002
    Posts
    39
    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.
    Compiler: Dev-C++ 4.9.8.0

    -Bert

  4. #4
    fry
    fry is offline
    Registered User fry's Avatar
    Join Date
    Mar 2002
    Posts
    128
    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++".

  5. #5
    Registered User
    Join Date
    Jun 2002
    Posts
    39
    1: Included "allegro.h"
    2: Included linker info
    3: Dev-C++ installed in "C:\Dev-Cpp"
    Compiler: Dev-C++ 4.9.8.0

    -Bert

  6. #6
    fry
    fry is offline
    Registered User fry's Avatar
    Join Date
    Mar 2002
    Posts
    128
    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
    IDE: Dev C++ 5
    Lib: Allegro
    OS: Windows 2000

  7. #7
    Registered User JoshG's Avatar
    Join Date
    Mar 2002
    Posts
    326
    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.

  8. #8
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    it needs to be updated to the newest stable version

  9. #9
    Registered User JoshG's Avatar
    Join Date
    Mar 2002
    Posts
    326
    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?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Allegro in C for a newb
    By Ideius in forum C Programming
    Replies: 5
    Last Post: 12-29-2005, 03:36 PM
  2. Game Programming FAQ
    By TechWins in forum Game Programming
    Replies: 5
    Last Post: 09-29-2004, 02:00 AM
  3. double buffering for allegro
    By Leeman_s in forum C++ Programming
    Replies: 6
    Last Post: 09-12-2002, 02:45 PM
  4. Special Allegro Information
    By TechWins in forum Game Programming
    Replies: 12
    Last Post: 08-20-2002, 11:35 PM
  5. Allegro programming in a window
    By Person Man in forum Windows Programming
    Replies: 0
    Last Post: 11-16-2001, 02:23 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21