Hi guys I've gone through the tutorial "Graphics - Using render windows" and I tried to make one but it won't work, I get 9 errors all saying parts of code are referenced in function_main, here is the code:
#include <SFML/System.hpp>
#include <SFML/Graphics.hpp>
#include <iostream>
int main()
{
// Create the main rendering window
sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFML Graphics");
// Start game loop
while (App.IsOpened())
{
// Process events
sf::Event Event;
while (App.GetEvent(Event))
{
// Close window : exit
if (Event.Type == sf::Event::Closed)
App.Close();
}
// Clear the screen (fill it with black color)
App.Clear();
// Display window contents on screen
App.Display();
}
return EXIT_SUCCESS;
}
It's just a copy paste from the tutorial except the #includes and I have linked the sfml-system.lib.