ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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
george@linux:~/Documents>
... 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.
their website says..
>> Allegro is a game programming library for C/C++
so you should be ok there. the error is saying that the header file cannot be found .. so you need to locate the header location and include it with -I/location/of/headers on the g++ line..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.