Ok, so, I've played a bit with OpenGL, Direct3D and some SDL before, so I thought "why not try Allegro?".
It looks simple enough, and fun to use, so yes, I decided to give it a shot.
I downloaded the precompiled binaries for MinGW, made a MINGDIR variable like I was told in the tutorials, and ran install.bat (actually, I first copied it all by hand, but install.bat just over wrote everything).
I have the 3 Allegro DLL's in System and System32, but I doubt that could be giving me the problem I'm having.
I might as well paste the code I've typed out (very simple, just to test Allegro):
#include <allegro.h>
int main(int argc, char *argv[])
{
allegro_init();
install_keyboard();
set_gfx_mode(GFX_AUTODETECT, 640,480,0,0);
readkey();
return (0);
}
END_OF_MAIN();
Now, that should work just fine and dandy from what I've read, but I come up with these errors:
C:\>gcc -o allegrotest allegrotest.c
C:\DOCUME~1\Owner\LOCALS~1\Temp/ccEtaaaa.o(.text+0x1d):allegrotest.c: undefined
reference to `install_allegro'
C:\DOCUME~1\Owner\LOCALS~1\Temp/ccEtaaaa.o(.text+0x25):allegrotest.c: undefined
reference to `install_keyboard'
C:\DOCUME~1\Owner\LOCALS~1\Temp/ccEtaaaa.o(.text+0x3d):allegrotest.c: undefined
reference to `set_gfx_mode'
C:\DOCUME~1\Owner\LOCALS~1\Temp/ccEtaaaa.o(.text+0x45):allegrotest.c: undefined
reference to `readkey'
C:\DOCUME~1\Owner\LOCALS~1\Temp/ccEtaaaa.o(.text+0x6b):allegrotest.c: undefined
reference to `_WinMain'
I have everything where it belongs, so what's the problem?
Did I forget to link something (I didn't link anything)?
I'm quite perplexed, any help would be much appreciated.
Thanks in advance. [smile]