Welcome to devpaks repository

Allegro

Library version 4.2.1
Devpak version 1mol
Packager mol
michal at molhanec dot net
Homepage
Last modified 2006-12-04 01:48:45
Description Allegro is a game programming library for C/C++ developers distributed freely, supporting the following platforms: DOS, Unix (Linux, FreeBSD, Irix, Solaris, Darwin), Windows, QNX, BeOS and MacOS X. It provides many functions for graphics, sounds, player input (keyboard, mouse and joystick) and timers. It also provides fixed and floating point mathematical functions, 3d functions, file management functions, compressed datafile and a GUI.
Library homepage
Depends on
Download
Category Allegro

You can register yourself to be notified of the changes to this devpak if you log in.

Re: This is a faster solution by guest 2011-02-23 02:44:32 Reply
I completely agree. I spent SO much time on Code Blocks not being able to use Allegro even if I went under Linker Options (something like that)...man, i knew Dev-C++ would have it some much easier. I just wish it would work well in Linux
Allergo 5.0.0 by guest 2011-02-10 13:49:55 Reply
Allegro 5.0.0 has just been released 02/08/2011, It doesn't have anything to do with previous versions, If you wan to learn how to install Allegro with the pre-built binaries using Code::Block and MinGW go to www.cerebrospain/allegro_en.com
This is a faster solution by guest 2011-02-01 21:11:19 Reply
After 1 hour of frustration trying to configure Code::Blocks with allegro, I returned to the good ol' devpack :).
Thx to all of u =) by guest 2010-12-31 17:03:43 Reply
I have been trying to configure allegro with my compiler(Dev C++), but all the time I failed. Thanks for your built-in installer. I installed allegro library successfully. Many thx and happy new year to all =)
Re: HELP PLEASE!!! by guest 2009-12-07 07:21:23 Reply
You probably doesn't have permission to save on that folder. Try executing Dev C++ as Administrator and check on the task manager if your program is being executed on the "Process" tab. Kill the process if it's running, then try again.
HELP PLEASE!!! by guest 2009-08-10 06:32:25 Reply
I use Dev-C++ 4.9.9.2 and Allegro 4.2.2. Every time I compile a program, it comes up with this:

[Build Error] ["Program Name".exe] Error 1

It is not my code! What am I doing wrong???
Re: Help by guest 2009-02-05 19:45:18 Reply
There - alleg.sourceforge.net
ef by guest 2009-01-24 22:28:39 Reply
<html>yo</html>
Help by guest 2009-01-06 23:34:32 Reply
Where can I get Allegro??
Re: The problem: by guest 2008-11-28 03:01:36 Reply
Thank you so much! I've been trying to solve this problem for ages and this did it!!! I'm so happy.
problem by guest 2008-09-12 07:31:32 Reply
every time i try to compile i get these errors help!! i do not want to go back to command prompt compiling its annoying

[Linker error] undefined reference to `__cpu_features_init'
ld returned 1 exit status
C:\Dev-Cpp\Makefile.win [Build Error] [Project2.exe] Error 1
Nice by guest 2008-07-29 00:11:10 Reply
Thanks - i wrote about this in my blog - http://www.seocoder.org/
Re: help needed urgently by guest 2008-06-14 16:48:27 Reply
ummmm MINGW is really messed up with vista so you might have to fight with it but you can use this version on vista
Re: The problem: by guest 2008-06-10 08:25:28 Reply
Thank you thank you!!
cool! by guest 2008-01-12 22:26:40 Reply
Thanks!
thank you by guest 2008-01-02 17:03:09 Reply
i want to do something to create an interrupt in my C++ loops
that control it in time divitions.
for example:
every 120000 micro seconds do evry loop instructions.
can you help me?
my email:
b_nazeri@myway.com
help needed urgently by r'acheey 2007-11-22 14:21:53 Reply
hello programmers,

i use dev c++ 4.9.9.2 on windows vista, and somehow can't get allegro to work. can you tell me if there is a version of allegro that can work with vista. if yes could you please give me the path and some instructions to install and use it on my sytem.

thanks much
R.B.R
Re: Problem with 4.2 Beta DevPak by guest 2007-08-06 15:58:55 Reply
Compiler: Default compiler
Building Makefile: "D:\HTWG Konstanz\Studienarbeit\Samples Buch\chapter04\tankwar\Makefile.win"
Führt make... aus
make.exe -f "D:\HTWG Konstanz\Studienarbeit\Samples Buch\chapter04\tankwar\Makefile.win" all
gcc.exe main.o -o "TankWar.exe" -L"C:/Dev-Cpp/lib" -mwindows C:/Dev-Cpp/lib/liballeg.a

main.o(.text+0xf93):main.c: undefined reference to `_imp___sort_out_getc'
main.o(.text+0xfd6):main.c: undefined reference to `_imp___sort_out_putc'
collect2: ld returned 1 exit status

make.exe: *** [TankWar.exe] Error 1

Ausführung beendet

What's the problem?
Re: The problem: by guest 2007-03-25 00:40:47 Reply
I have a problem with my compiler, I downloaded dev c 4.9.9.2 and I have a program which it must work. But the compiler don't recognise the sleep function and I don't know what must do.
The problem: by guest 2006-11-22 15:03:38 Reply
Go to project->project options->parameters->add library or object and put in C:\Dev-Cpp\lib\liballeg.a.

It works now!
The problem: by guest 2006-11-22 15:03:38 Reply
Go to project->project options->parameters->add library or object and put in C:\Dev-Cpp\lib\liballeg.a.

It works now!
The problem: by guest 2006-11-22 15:02:46 Reply
Go to project->project options->parameters->add library or object and put in C:\Dev-Cpp\lib\liballeg.a.

It works now!
I'm getting these errors too! by guest 2006-11-22 03:07:45 Reply
I've tried everything, but I can't get my programs to work! I've reinstalled both versions of Allegro at least 10 times each, but I keep on getting the same compile errors!

Please, someone help me! I want to program cool stuff!
Re: Where to get the prcompiled version of Allegro DLL and GUI and GUI Sources by guest 2006-10-18 06:14:46 Reply
k hola como as estado espero bien por q tepuede dar
un infarto ijij mira ujn amigo des cubrio esto
ke sepuede sacar los codigos fuentes de la pagina principal de internet explored sales kieres saver kien soy mi mns es
perdo_califas@gotmail.com
nimodos soy apredis ijij es hotmail
luego tendre un net
Re: Problem with 4.2 Beta DevPak by guest 2006-09-16 21:47:32 Reply
no semi colon at the end of END_OF_MAIN and remove ,SCREEN_W, SCREEN_H
and you should compile a program that sends a ton of circles in random places
Re: Problem with 4.2 Beta DevPak by guest 2006-09-16 21:40:53 Reply
don't put a semicolon at the end of END_OF_MAIN()
Re: Re: precompiled version of allgro by guest 2006-08-30 22:00:58 Reply
You are not linking Allegro. Open the Project\Project Options\Parameters tab and in the Linker textbox add -lalleg.
Re: precompiled version of allgro by guest 2006-08-29 22:26:13 Reply
Hey can anyone help me?

I tried to compile this sourcecode (I got it from a tutorial on http://www.cppgameprogramming.com/cgi/nav.cgi?page=allegbasics):


-----------------------------------

#include <allegro.h>


int main(){

allegro_init();
install_keyboard();
set_gfx_mode( GFX_AUTODETECT, 640, 480, 0, 0);

readkey();

return 0;

}
END_OF_MAIN();

-----------------------------------

And that gave me this compiler log:

-----------------------------------

Compiler: Default compiler
Building Makefile: "C:\Tom\Dev-Cpp\Projects\Test App\Makefile.win"
Executing make...
make.exe -f "C:\Tom\Dev-Cpp\Projects\Test App\Makefile.win" all
g++.exe -c main.cpp -o main.o -I"C:/TOM/DEV-CPP/lib/gcc/mingw32/3.4.2/include" -I"C:/TOM/DEV-CPP/include/c++/3.4.2/backward" -I"C:/TOM/DEV-CPP/include/c++/3.4.2/mingw32" -I"C:/TOM/DEV-CPP/include/c++/3.4.2" -I"C:/TOM/DEV-CPP/include" -I"C:/Tom/Dev-Cpp/My includes" -I"C:/Tom/Dev-Cpp/My includes"

g++.exe main.o -o "Project1.exe" -L"C:/TOM/DEV-CPP/lib"

main.o(.text+0x24):main.cpp: undefined reference to `install_keyboard'
main.o(.text+0x50):main.cpp: undefined reference to `set_gfx_mode'
main.o(.text+0x55):main.cpp: undefined reference to `readkey'
main.o(.text+0x67):main.cpp: undefined reference to `_get_allegro_version'
main.o(.text+0x7a):main.cpp: undefined reference to `get_config_text'
main.o(.text+0x8b):main.cpp: undefined reference to `_imp__allegro_error'
main.o(.text+0x93):main.cpp: undefined reference to `ustrzcpy'
main.o(.text+0xb5):main.cpp: undefined reference to `_install_allegro'

main.o(.text+0xec):main.cpp: undefined reference to `_WinMain'

collect2: ld returned 1 exit status

Execution terminated

-----------------------------------

And I have absolutely no idea why it won't work.
Can anybody help me??

Now I used allegro 4.2.0 and as someone said in an earlier post I also tried to install version 4.1.16 but that gave the same result.
Re: precompiled version of allgro by guest 2006-04-17 18:38:05 Reply
baboso
Re: precompiled version of allgro by mol (michal at molhanec dot net) 2006-01-13 18:13:24 Reply
Yes, that is completely the same devpak as this (in fact the download link from this page and from webupdate leads to the same URL).
precompiled version of allgro by guest 2006-01-13 17:36:08 Reply
if you got Dev-Cpp do this:

go to Tools -> Check for Updates/Packages -> select "devpaks.org" for server and then Check of Updates..

when the list of avaible updates is complite, you can search there for Allegro package and it will download it an install it.
Re: Re: Re: Problem with 4.2 Beta DevPak by guest 2005-08-08 21:31:43 Reply
no
Re: Re: Problem with 4.2 Beta DevPak by guest 2005-08-08 21:04:54 Reply
Thanks. yeah. I put the rest function in on another plaform. do you know where those symbols sort_out_putc and getc are located?
Re: Problem with 4.2 Beta DevPak by guest 2005-08-08 21:01:03 Reply
Your code works for me (except that Allegro has no sleep function, it should be replaced with rest).
However you can try 4.1.16: http://prdownloads.sourceforge.net/devpaks/allegro-4.1.16.DevPak?download
Problem with 4.2 Beta DevPak by guest 2005-08-08 19:41:01 Reply
I posted this to DEV-CPP as well. However, I have tried various versions of the devpaks and found that this problem shows up in 4.18 adn continues through. and I can't use 4.17 because it hangs when running programs.



Hi Everyone,

I hope that someone can help with this. I am getting a link error on all of my Allegro programs. I have not experienced this problem on a windows machine I have at home using Dev-CPP, but I am on 2 machines at work.

I am compiling the following code:

/////////////////////////////////////////////////////////////////////////
// Game Programming All In One, Second Edition
// Source Code Copyright (C)2004 by Jonathan S. Harbour
// Chapter 3 - Circles Program
/////////////////////////////////////////////////////////////////////////

#include "allegro.h"

void main(void)
{
int x,y,radius;
int red,green,blue,color;

//initialize some stuff
allegro_init();
install_keyboard();
install_timer();
srand(time(NULL));

//initialize video mode to 640x480
int ret = set_gfx_mode(GFX_AUTODETECT_WINDOWED, 640, 480, 0, 0);
if (ret != 0) {
allegro_message(allegro_error);
return;
}

//display screen resolution
textprintf(screen, font, 0, 0, 15,
"Circles Program - %dx%d - Press ESC to quit",
SCREEN_W, SCREEN_H);

//wait for keypress
while(!key[KEY_ESC])
{
//set a random location
x = 30 + rand() % (SCREEN_W-60);
y = 30 + rand() % (SCREEN_H-60);
radius = rand() % 30;

//set a random color
red = rand() % 255;
green = rand() % 255;
blue = rand() % 255;
color = makecol(red,green,blue);

//draw the pixel
circle(screen, x, y, radius, color);

sleep(25);
}

//end program
allegro_exit();
}

END_OF_MAIN();

I get the following compiler log:

Compiler: Default compiler
Building Makefile: "F:\Game Design\dev-cpp\chapter03\Circles\Makefile.win"
Executing make...
make.exe -f "F:\Game Design\dev-cpp\chapter03\Circles\Makefile.win" all
gcc.exe main.o Circles_private.res -o "Circles.exe" -L"F:/Dev-Cpp/lib" -lalleg

main.o:main.c:(.text+0xfd2): undefined reference to `_imp___sort_out_getc'
main.o:main.c:(.text+0x1006): undefined reference to `_imp___sort_out_putc'
collect2: ld returned 1 exit status

make.exe: *** [Circles.exe] Error 1

Execution terminated

I am using the following versions:

Allegro 4.2.0 beta 4
Dev-CPP 4.9.9.2

BTW, I tried Allegro 4.0 and that devpak does not install the alleg40.dll in the correct place and even after I move it myself, the program will compile, but hangs during execution. On my other machine it works great.

I do not know where the sort_out_getc and sort_out_putc come from and so I do not know which lib is at fault.

Regards,

Charles
thx by guest 2005-08-01 20:44:49 Reply
thx michal for making this pack! its the only way ive been able to get allegro set up =(
Re: Where to get the prcompiled version of Allegro DLL and GUI and GUI Sources by mol (michal at molhanec dot net) 2005-07-28 16:04:01 Reply
Sources: http://prdownloads.sourceforge.net/alleg/all403.zip?download
DLL: http://prdownloads.sourceforge.net/alleg/all403_bin.zip?download
Where to get the prcompiled version of Allegro DLL and GUI and GUI Sources by Thomas Schönfelder (tschoenfelder at web dot de) 2005-07-28 15:10:48 Reply
Hello !

I'm looking for a precompiled version of Allegro DLL and Allegro GUI. Additional I'm looking for the sources of Allegro GUI.

Where to get it? Can you send me the asked files per Email.

It is tschoenfelder(AT).web.de

Use '@' instead of 'AT'.

Thank's for your work

Sorry, some late, but I've seen the link for download. But it is in DevPack format. How to expand it. I need it in zip format.

Thomas Schoenfelder
Where to get the prcompiled version of Allegro DLL and GUI and GUI Sources by Thomas Schönfelder (tschoenfelder at web dot de) 2005-07-28 15:07:11 Reply
Hello !

I'm looking for a precompiled version of Allegro DLL and Allegro GUI. Additional I'm looking for the sources of Allegro GUI.

Where to get it? Can you send me the asked files per Email.

It is tschoenfelder(AT).web.de

Use '@' instead of 'AT'.

Thank's for your work

Thomas Schoenfelder

Sorry, commenting disabled because of spam.