Hi! I'm running the latest OpenSuse 11.4.
I have knowledge of C++ programming and I think I'm ready to start using graphics.
I have downloaded allegro-5.0.4.tar.gz, extracted it and tried to include allegro.h file in my C++ code.

Here is my testing file for allegro.

#include <iostream>
#include "/Documents/Allegro/include/allegro5/allegro.h"
 
int main(){

	cout << "Allegro Y U NO WORK?" << endl;

}

I get the following error:

In file included from testin.cpp:2:0:
Allegro/include/allegro5/allegro.h:26:27: fatal error: allegro5/base.h: No such file or directory
compilation terminated.

If you have any advice or a tutorial, please inform me of them.

Allegro must be installed in the system. From what i see you just got the header files.
I dont know what software packager does Opensuse has, search it and latter install it.

The header files will be copied to the include

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.