I'm completely new to SFML or any kind of graphics library. Using Ubuntu 10.04. I followed the tutorial on sfml-dev.org, downloaded SFML using the first option. I did g++ filename.cpp -c to compile and I got:
In file included from /usr/include/SFML/Window.hpp:40,
from /usr/include/SFML/Graphics.hpp:32,
from graph.cpp:1:
/usr/include/SFML/Window/OpenGL.hpp:47:23: error: GL/gl.h: No such file or directory
/usr/include/SFML/Window/OpenGL.hpp:48:24: error: GL/glu.h: No such file or directory
graph.cpp: In function ‘int main()’:
graph.cpp:6: error: ‘CircleShape’ is not a member of ‘sf’
graph.cpp:6: error: expected ‘;’ before ‘shape’
graph.cpp:7: error: ‘shape’ was not declared in this scope
graph.cpp:9: error: ‘class sf::RenderWindow’ has no member named ‘isOpen’
graph.cpp:12: error: ‘class sf::RenderWindow’ has no member named ‘pollEvent’
graph.cpp:14: error: ‘class sf::Event’ has no member named ‘type’
graph.cpp:15: error: ‘class sf::RenderWindow’ has no member named ‘close’
graph.cpp:18: error: ‘class sf::RenderWindow’ has no member named ‘clear’
graph.cpp:19: error: ‘class sf::RenderWindow’ has no member named ‘draw’
graph.cpp:20: error: ‘class sf::RenderWindow’ has no member named ‘display’
I have a feeling it might be a simple thing, but I don't know. I appreciate any help, thank you.