I'm new to both SFML and C++ and am working on my second project. The project IS working, but I've run out of room to display the results and thought I'd look at a tutorial on how to use sf::view so I can scroll the results down below. The SFML tutorial is a bit sparse and I found this tutorial in GitHub:
https://github.com/SFML/SFML/wiki/Tutorial:-Using-ViewIt claims to be using SFML 2 (I'm using SFML 2.1) and is written for Xcode, while I'm using Code::Blocks 13.12.
The CPP is attached. I get 3 errors and 3 notes (see attached screenshot jpg). Is this just bad code, or is there some conversion problem from Xcode to Code::Blocks? Or am I missing a library?
The errors are:
line 46 no matching function for call to 'sf::Text::Text(const char [16])'
line 146 two identical errors, 'class sf::RenderWindow' has no member named 'convertCoords'
It's so close! If this is bad code, does anyone have an idea what it should be?
I'd appreciate your help.