Hello, I am trying to use the allegro game library (5.05) and I came across an error. It involved not being able to find -lgcc_eh so I switched it to static-lgcc_eh and it worked fine, that is until I got an error for not finding allegro-5.0.5-mt.dll . I looked in the .dll directory for it, and it was there. Tried it again. Still no avail. So I tried installing the DirectX files on their website (merging the two folders). Still does not work. I have tried looking all over the web for the topic, but Google was not playing nice (no results). Oh , and by the way, here is the code: Code: #define ALLEGRO_STATICLINK #include <stdio.h> #include <allegro5/allegro.h> int main(int argc, char **argv) { ALLEGRO_DISPLAY *display = NULL; if(!al_init()) { fprintf(stderr, "failed to initialize allegro!\n"); return -1; } display = al_create_display(640, 480); if(!display) { fprintf(stderr, "failed to create display!\n"); return -1; } al_clear_to_color(al_map_rgb(0,0,0)); al_flip_display(); al_rest(10.0); al_destroy_display(display); return 0; } link to tutorial:http://wiki.allegro.cc/index.php?title=Allegro_5_Tutorial/Displays link to installing library:http://wiki.allegro.cc/index.php?title=Windows_Vista,_Code::Blocks_10.05_and_Allegro_5 Thanks
It was the wrong libraries for the compiler I was using. I just had to change the mingw compiler to be compatible.