Page 1 of 1

Allegro

Posted: Tue Jul 14, 2009 1:03 pm
by Martijn
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

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 get that compile error, here is the outcome of that tutorial:
(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.

Re: Allegro

Posted: Tue Jul 14, 2009 2:06 pm
by Sanshin77
I think the Allegro DevPak comes with a "template project" that you can create(?).
Have you tried that?

Re: Allegro

Posted: Sat Jul 25, 2009 3:09 pm
by Pickzell
If you have UAC (User Account Control) on then turn it off.

Start -> Control Panel -> User Accounts -> Turn user account control on and off -> uncheck Use UAC to protect my computer. Click OK

Now reinstall the devpack and it should work.