How to compile a C++ file (.cpp) with allegro?
I recently got a book "Game Programming All In One 2nd Edition" and it uses c as its language for the book. Now, from what I understand C++ is just an extention(s) to c, and wasn't anything that was to replace c. I understand this because I can use functions and commands used in c, much the same in c++. (such as textprintf). But I'm getting an error from the compiler saying that Allegro is not found...
george@linux:~/Documents> g++ class4.cpp -o class4 `allegro-config --libs`
bash: allegro-config: command not found
class4.cpp:4:21: allegro.h: No such file or directory
class4.cpp:29:2: warning: no newline at end of file
... I can use SDL and those are c based functions. Correct? If what I think is wrong, and I'm sure it is, please correct me with the right information. Thanx in advance.