Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Dlls you must have to run a Allegro program.....

This thread is locked; no one can reply to it. rss feed Print
Dlls you must have to run a Allegro program.....
NightSonic
Member #1,155
April 2001

What are the dlls you must have to run a Allegro program? I want to send a cd of a little game I made to my friend but im pretty sure it wont run unless he has certain Dlls can someone tell me what they are?
Thanks!

Omikron
Member #1,413
February 2001

If you are using WIP (the windows version of allegro) you must have some kind of DLL, probably called something_39yadyada.dll or something... If you are using Allegro 3.12 or lower though (DOS version) you don't need any DLLs.

Bob
Free Market Evangelist
September 2000
avatar

NightSonic: you need to distribute the Allegro DLL to those whom you give your program to (The Allegro DLL contians all of teh Allegro code). The DLL version should match the one you compiled your program with. So if you're using Allegro 3.9.35, then you must distribute all3935.dll (or ald3935.dll for the debug version).
Otherwise, Allegro simply requires that DirectX 3 (or later) be installed.

--
- Bob
[ -- All my signature links are 404 -- ]

NightSonic
Member #1,155
April 2001

Thanks a lot for you hope.

Dora D
Member #1,063
March 2001

Uh... what's this alleg*.dll -- when I run any allegro prog I never can get any of the windows gfx drivers to work -- NONE OF THEM! Since I've never heard of this alleg*.dll, this may have something to do with my prob, so how do I get it?

Trumgottist
Member #95
April 2000
avatar

The dll is made when you compile Allegro, and when you type make install it's copies to your system folder (Normally C:\Windows\System).

--
"I always prefer to believe the best of everybody - it saves so much time." - Rudyard Kipling

Play my game: Frasse and the Peas of Kejick

wolfman8k
Member #508
July 2000
avatar

You can also compile your game with a static link library instead of the dynamic link library. That way the only thing you'll need to distribute is the .exe file and the data files(graphics, sounds, etc).
For information check out this tutorial:
http://members.xoom.com/dynasta/allegro_tutorial/index.html

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ Machine Ball - Futuristic 3D Sport ]

Dora D
Member #1,063
March 2001

k... I found the DLL file. When I give my game to somebody who doesn't have Allegro etc, does the DLL have to be installed to \windows\system? Or can it just be in the same dir as the other game files?

Trumgottist
Member #95
April 2000
avatar

It can be in the game directory, but one point with the dll is that if several Allegro games are installed on the same system they can share the dll and reduce disk space if it's located in /windows/system
But if you put it there, it's nice to remove it with an uninstallation program so you don't leave it behind if the user removes your program.

--
"I always prefer to believe the best of everybody - it saves so much time." - Rudyard Kipling

Play my game: Frasse and the Peas of Kejick

sth
Member #538
July 2000

I think people should distribute the DLL in their program directories! I had many problems when having the Allegro DLL in win/system because of incompatibilities with the CVS versions!
We don't have 200MB hard-drives anymore and the Allegro DLL is only ~500KB, even smaller when you compress it with UPX!

Dora D
Member #1,063
March 2001

Another thing about putting it in \windows\system is this:
When I installed "Dark Soul" it screwed up my original alleg3934.dll that was in the win sys dir. It had bits missing and was infact only about 200k... the usual alleg3934.dll being about 500k. So, I compiled a prog the other day, and it complained that it couldn't find link for set_volume_per_voice... so I had to re-copy alleg3934.dll from the allegro dir to the win sys dir... which really p'd me off!

Go to: