In file included from /usr/local/include/allegro5/allegro.h:53:0, from
main.cpp:1: /usr/local/include/allegro5/render_state.h:14:25: error:
conflicting declaration ‘ALLEGRO_ALPHA_TEST’ In file included from /usr/local
/include/allegro5/allegro.h:29:0, from main.cpp:1: /usr/local/include/allegro5
/bitmap.h:23:4: error: ‘ALLEGRO_ALPHA_TEST’ has a previous declaration as ‘
ALLEGRO_ALPHA_TEST’
It works fine with allegro 5.0.10-1 and gcc 4.8.2 or clang 3.4
-I/usr/include/allegro5
that's incorrect. you are using #include <allegro5/allegro.h> so the include path should be simply
-I/usr/include
because of that, the compiler is using /usr/local/include/allegro5/allegro.h
maybe you've got an outdated version there, as I don't have a `render_state.h' file