-
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.
-
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
-
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.
-
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). :)