Allegro
Posted: Tue Jul 14, 2009 1:03 pm
I'm using devcpp and I just can't get allegro to work.
I've installed "allegro-4.2.1-1mol.DevPak" and at project options -> parameters -> linker I wrote "-lalleg".
and umm.. used if I compile the code from this tutorial (or any) http://loomsoft.net/resources/alltut/alltut_lesson1.htm
I get that compile error, here is the outcome of that tutorial:
(I also downloaded there outcome, same error)
I've installed "allegro-4.2.1-1mol.DevPak" and at project options -> parameters -> linker I wrote "-lalleg".
and umm.. used if I compile the code from this tutorial (or any) http://loomsoft.net/resources/alltut/alltut_lesson1.htm
Code: Select all
Circular main <- main.o dependency dropped.
C:\Documents and Settings\Admin\Bureaublad\allegro\Makefile.win [Build Error] [Project1.exe] Error 1
(I also downloaded there outcome, same error)
Code: Select all
#include <allegro.h>
int main(int argc, char *argv[])
{
allegro_init(); // Initalize Allegro
install_keyboard();
// set_gfx_mode(GRAPHICS MODE, Width, Height, Virtual Width, Virtual Height);
set_gfx_mode(GFX_AUTODETECT, 640,480,0,0);
readkey(); // wait for input
return 0;
}
END_OF_MAIN() // This must be called right after the closing bracket of your MAIN function.
// It is Allegro specific.