making exe of my game project
Sarfaraz Sheikh

hi, I have completed making a game on visual studio 2010, using allegro 5.0.1 library.

now I want to make an executable file of my game so that I can run my game on any other computer.

I have tried to make exe file by building my project on both debug mode and release mode. but when I try to run the produced exe file on other computer, it throw some errors and doesn't run.

the produced exe file is running fine on my computer on which i make it.

I have also tried by copying allegro-5.0.1-monolith-md-debug.lib and some other dll file that it asks for, and running the exe but it never run on the other computers.

I have searched on google and tried to find tutorials. but I am unable to learn it from anywhere. please help me solving this problem:-/

Matthew Leverton

You don't need to copy lib files. You only need to copy the Allegro DLL file that corresponds with the lib you used. Generally speaking, you should only distribute the release (non-debug) version.

Because you used the MD Allegro DLL, the person running the program also needs to install the Microsoft redistributable runtime for Visual C++ 2010. (If he hasn't already.)

If you use the MT version, that is not necessary. (You need to switch your MSVC project settings to use /MT as well then.)

Personally, I would use the static-monolith-mt version for release mode. No DLLs are required. Be sure to define ALLEGRO_STATICLINK in your project settings if you do that.

Sarfaraz Sheikh

can you tell the steps to switch my MSVC project setting from MD to MT.

right now I am adding (allegro-5.0.1-monolith-md-debug.lib) in my project references -> configuration properties -> linker -> input -> additional dependencies

Matthew Leverton
Thread #607559. Printed from Allegro.cc