0

Today I installed allegro 5.as the a link. But When I start to write a very simple code. When I compiled using "g++ allegro_test.cpp -o output.out pkg-config --libs allegro5.0" it returns that allegro undefined reference to al install system. When I use pkg-config --cflags --libs allegro-5.0. It only returns -lallegro. What can I do to solve this problem?

1 Answers1

0

Is this a typo? It only returns -lallergo ?

Try to compile with: g++ allegro_test.cpp -o output.out -lallegro

Ferenc Deak
  • 34,348
  • 17
  • 99
  • 167