Hey.
I am using DevC++ 4.01 and i recently downloaded the allegro 4.0 self install exe from their site...it is all installed and everything, but here is my problem.

Code:
#include <allegro.h>

int main(int argc, char *argv[])
{
  allegro_init();
  set_gfx_mode(GFX_AUTODETECT,640,480,0,0);
  install_keyboard();
  if (key[KEY_SPACE])
     exit(0);
  return 0;
}
the problem is right at the beginning. The linker just throws a bunch of 'undefined reference' errors at me. If i just delete everything and only leave the #include line, all it says is 'undefined reference to WinMain@16'. So i try including windows.h, and it just gives me more errors about 'redefined BITMAP BITMAP' blah blah blah.... anyone know what's wrong?
oh and i have tried compiling both under a console project and a windows project, same errors.