allegro problem

im trying to use allegro and when i typed up a simple program in it, it gave me alot of compiler errors. but the biggest reason to that is this -
alplatf.h: No such file or directory. i have in included all the include files in the options(im using code blocks 8.02, in windows) it leads back to the allegro.h file too. heres the code:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//include header file
#include <allegro.h>

//start program with main function
int main(int argc, char *argv[])
{
    //initialize allegro
    allegro_init();

    //set up input device
    intall_keyboard();

    //set up screen: auto set graphics mode, width, and height(dont worry about the last 2 zeros for now)
    set_gfx_mode(GFX_AUTODETECT, 640, 480, 0, 0);

    //stall the program until a key is hit
    readkey();

    //exit the program
    return 0;
}

//special end for allegro
END_OF_MAIN()


anyone run into the same problem? or should i switch compilers?
Last edited on
You did install Allegro, didn't you?
yes. now by install do you mean include the header files?
No, I mean putting the corresponding headers and static linking libraries where the compiler and linker can find them.
you can try dev c++ compiler. Then try allegro devpak from
http://www.devpaks.org/
you can try dev c++ compiler


Please don't advise that in these forums, DevC++ is a non-maintained IDE it's only a matter of time before it's completely useless...
Maybe in 2007 it was a matter of time. Now it's a reality.
Topic archived. No new replies allowed.