I followed this guide: http://wiki.allegro.cc/index.php?title=Debian_and_Allegro_5 Everything went smooth, and I have /usr/include/allegro5 and allegro lirary files in /usr/lib
When I compile simple program, includes are resolved correctly, but I have problem with linking.
pkg-config --libs allegro-5.0 returns "-lallegro".
When I put -lallegro (or pkg-config --libs allegro-50
) into the makefile, I get message
"Cannot find -lallegro"
Makefile:
g++ -static -O2 $(INCLUDES) $(SRC) -otest -D USE_THREADS -lboost_thread -lpthread -L/usr/lib/ pkg-config --libs --cflags allegro-5.0