Thread: Problem with Allegro

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    46

    Problem with Allegro

    I downloaded and installed everything, but now I get an error message when I try to link my program. Otherwise the program compiles fine.
    The first is: "A required .DLL file, ALLEG.DLL, was not found."
    The second is: "Could not execute: One of the library files needed to run this application could not be found."

    I'm using MSVC++ 6 on Windows ME. The .lib files that I added for this project were alleg.lib and alleg_s.lib The .DLL file that apparently could not be found is in my DLL folder in the VC98 directory.

    Did I fail to link a .lib file? Or is this something worse.
    C code. C code run. Run code, run...please!

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    375
    No, nothing your fault. The .DLL file must either be in the path, or the same directory as your program. You can just copy it into your Windows directory if you like. If you used my installer, then let me explain that the reason for not putting the .DLL in the path to start with was simply because I wanted to give you the control as to where it goes (many people, like me, just put it in their program's directory to make distributing it a tad easier).

    Hope that helps. By the way, if you would like to link in the Allegro library so that it doesn't require the .DLL, add allegro_s.lib (I think that's the name) into your project instead. It will "static" link your program. That's what I almost always do.

    -Justin
    Allegro precompiled Installer for Dev-C++, MSVC, and Borland: http://galileo.spaceports.com/~springs/

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    46
    I tried using allegro_s.lib and that didn't work, but putting the DLL in my windows directory did the trick. Now I need to learn how to use allegro

    Do you know of any good basic tutorials on how to use it? I looked at the ones on the allegro page and the ones that were not bad links weren't very informative to someone who only knows about console programming.
    C code. C code run. Run code, run...please!

  4. #4
    Registered User
    Join Date
    Oct 2001
    Posts
    375
    Yeah, check around www.allegro.cc It is an Allegro game programming forum and many of the members have good tutorials coming out all the time. If the dll works for you then no problem, but if you'd like help at some point in time getting the static link to work, let me know (along with what errors you get).
    Allegro precompiled Installer for Dev-C++, MSVC, and Borland: http://galileo.spaceports.com/~springs/

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. searching problem
    By DaMenge in forum C Programming
    Replies: 9
    Last Post: 09-12-2005, 01:04 AM
  2. half ADT (nested struct) problem...
    By CyC|OpS in forum C Programming
    Replies: 1
    Last Post: 10-26-2002, 08:37 AM
  3. binary tree problem - help needed
    By sanju in forum C Programming
    Replies: 4
    Last Post: 10-16-2002, 05:18 AM
  4. problem in allegro with sprite leaving trail
    By Leeman_s in forum C++ Programming
    Replies: 18
    Last Post: 09-13-2002, 03:04 PM
  5. Problem declaring struct in allegro
    By bobish in forum Game Programming
    Replies: 7
    Last Post: 03-08-2002, 09:26 AM