Problems getting allegro to work.
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.
Oh, I know what the problem is
1) Go to the Project menu.
2) Click Project Options
3) Click Load Object files
4) Find the Dev-C++ folder and then the LIB folder
5) On files of type select Lib files ( *.a )
6) Double Click liballeg.a
7) Compile and Run :D