TGUI 0.7 is no longer supported, use a newer TGUI version instead.
There are four things you need to change in your code to get TGUI working.
The first thing to do is including it. TGUI will include "SFML/Graphics.hpp" for you.
The next thing to do is creating the Gui object.
When you will have widgets, they will need to receive events. Otherwise they wouldn’t know if your mouse is on top of them or not. Every time you receive an event, you will have to tell the gui about this event. So in your event loop you must add the following line:
The last thing to do is drawing the widgets on the screen. For this you must call the draw function of the gui.
So the full code will look like this: