Hello all,
I've downloaded and installed SFML for linux as described here:
http://www.sfml-dev.org/tutorials/2.0/start-linux.php however, when I try to compile the sample (before I can link it with libraries), I get all this:
main.cpp: In function ‘int main()’:
main.cpp:6:5: error: ‘CircleShape’ is not a member of ‘sf’
main.cpp:6:21: error: expected ‘;’ before ‘shape’
main.cpp:7:5: error: ‘shape’ was not declared in this scope
main.cpp:9:19: error: ‘class sf::RenderWindow’ has no member named ‘isOpen’
main.cpp:12:23: error: ‘class sf::RenderWindow’ has no member named ‘pollEvent’
main.cpp:14:23: error: ‘class sf::Event’ has no member named ‘type’
main.cpp:15:24: error: ‘class sf::RenderWindow’ has no member named ‘close’
main.cpp:18:16: error: ‘class sf::RenderWindow’ has no member named ‘clear’
main.cpp:19:16: error: ‘class sf::RenderWindow’ has no member named ‘draw’
main.cpp:20:16: error: ‘class sf::RenderWindow’ has no member named ‘display’
I've tried including the path to includes (/usr/include/SFML), making the command: g++ -c main.cpp -I /usr/include/SFML but still nothing. I've also ensured that the permissions are correctly set, nothing.
Any help would be appreciated.