954,504 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Trouble setting up Allegro on OpenSuse

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.

Triarius
Newbie Poster
8 posts since Jun 2011
Reputation Points: 10
Solved Threads: 0
 

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

lawnmoler
Newbie Poster
3 posts since Sep 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: