#include <allegro.h>
const int scrx=640;
const int scry=480;
int main(int argc, char *argv[]) {
allegro_init(); // Initialize the allegro file
install_keyboard(); // Initialize the keyboard
set_gfx_mode(GFX_AUTODECT,640,480,0,0); // Change raphics mode to 640x480
readkey(); //Wait until a key is pressed
return 0; //Exit the program
}
END_OF_MAIN(); // This must be called right after the closing bracket of your MAIN function.
// It is Allegro specific.
It gives me the following error:
`GFX_AUTODECT' undeclared (first use this function)
I've checked the code over and over on the site and compared it with mine, and it is exactly the same. What do I do?