Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Alleg44.dll cant be found :(

This thread is locked; no one can reply to it. rss feed Print
Alleg44.dll cant be found :(
johannes eriksson wallin
Member #12,906
May 2011

i have just start to work in allegro and it works great :) i'm just done with my PingPong game but the problem is that i can only play it in my compiler (Dev-C++) and not from the .exe file cuz the i get a error message saying that i dont have the alleg44.dll , any idees?

gnolam
Member #2,030
March 2002
avatar

Well, first off, you should have a look at your keyboard. Your shift key appears to be broken. :P

Second, the DLL needs to be in your executable's working directory.

[EDIT]
Third, your compiler is actually MinGW. Dev-C++ is your IDE - and it's buggy and outdated. If you want an open source IDE, use Code::Blocks. Otherwise, Visual Studio Express is actually pretty good.

--
Move to the Democratic People's Republic of Vivendi Universal (formerly known as Sweden) - officially democracy- and privacy-free since 2008-06-18!

johannes eriksson wallin
Member #12,906
May 2011

so I should just dl the dll? and move it to my working directory and not system32? thx :)

gnolam
Member #2,030
March 2002
avatar

Alright, since my "your shift key appears to be broken" comment was apparently too subtle: start capitalizing your posts. This isn't Counter-Strike. It's a forum. You have ample time to use proper spelling and capitalization in your posts.

--
Move to the Democratic People's Republic of Vivendi Universal (formerly known as Sweden) - officially democracy- and privacy-free since 2008-06-18!

johannes eriksson wallin
Member #12,906
May 2011

I'm sorry but I didn't think it was impotent, but form now on I will do my best :)

gnolam
Member #2,030
March 2002
avatar

Much better!

You should not have to download anything. If you're using Allegro, you have either already downloaded or built an Allegro DLL yourself (and if you need further proof that you have it, your program runs in Dev-C++ ;)). You can either copy the DLL into the executable's directory or copy it into Windows\system32 (or link statically, but that'll just be more trouble than it's worth). I recommend the former. Just remember to distribute it along with your game when you release it.

--
Move to the Democratic People's Republic of Vivendi Universal (formerly known as Sweden) - officially democracy- and privacy-free since 2008-06-18!

johannes eriksson wallin
Member #12,906
May 2011

Just did a search for Alleg44.dll cant find it anywhere. Created a new project of allegro and it runs just fine, but I have the same problem when i try to run the .exe :/ I feel kinda stupid right now. Thanks for trying to help me :)

gnolam
Member #2,030
March 2002
avatar

Just did a search for Alleg44.dll cant find it anywhere.

Even from the command line? I.e. dir alleg44.dll /s in the root of C:\ (or whichever drive you keep your programming stuff on)?

(The graphical search tool in Windows is notoriously bad at actually finding stuff)

--
Move to the Democratic People's Republic of Vivendi Universal (formerly known as Sweden) - officially democracy- and privacy-free since 2008-06-18!

johannes eriksson wallin
Member #12,906
May 2011

Okey I found it... I feel kinda dumb now when I find it in my dev-cpp\bin folder, argh! But thanks a lot

J-Gamer
Member #12,491
January 2011
avatar

Just a side question, but can programs find a dll when you put it in a /bin subfolder? When using multiple libraries, you would want to make the main folder as clean as you can.

Or is the better option to put the executable in the bin folder as well and have a link to it in the main folder?

" There are plenty of wonderful ideas in The Bible, but God isn't one of them." - Derezo
"If your body was a business, thought would be like micro-management and emotions would be like macro-management. If you primarily live your life with emotions, then you are prone to error on the details. If you over-think things all the time you tend to lose scope of priorities." - Mark Oates

gnolam
Member #2,030
March 2002
avatar

Well, technically, you can specify any path you want with LoadLibrary()/LoadLibraryEx(). :)
But if you really care, you can always either set the working directory in a shortcut, or simply invoke it from the DLLs' directory (e.g. ..\foo.exe).

--
Move to the Democratic People's Republic of Vivendi Universal (formerly known as Sweden) - officially democracy- and privacy-free since 2008-06-18!

J-Gamer
Member #12,491
January 2011
avatar

Ok, thanks

" There are plenty of wonderful ideas in The Bible, but God isn't one of them." - Derezo
"If your body was a business, thought would be like micro-management and emotions would be like macro-management. If you primarily live your life with emotions, then you are prone to error on the details. If you over-think things all the time you tend to lose scope of priorities." - Mark Oates

Go to: