sf::Event eventCloseMainWindow;
while (mainWindow.pollEvent (eventCloseMainWindow))
{
if (eventCloseMainWindow.type == sf::Event::Closed)
mainWindow.close ();
}
Severity Code Description Line File Project Suppression State
Error C2027 use of undefined type 'sf::Event' 78 c:\users\matusz\documents\visual studio 2015\projects\sfml\sfml\main.cpp SFML
Error C2664 'bool sf::Window::pollEvent(sf::Event &)': cannot convert argument 1 from 'int' to 'sf::Event &' 76 c:\users\matusz\documents\visual studio 2015\projects\sfml\sfml\main.cpp SFML
Error C2065 'Closed': undeclared identifier 78 c:\users\matusz\documents\visual studio 2015\projects\sfml\sfml\main.cpp SFML
Error C2079 'eventCloseMainWindow' uses undefined class 'sf::Event' 75 c:\users\matusz\documents\visual studio 2015\projects\sfml\sfml\main.cpp SFML
Error (active) incomplete type is not allowed 75 c:\Users\Matusz\Documents\Visual Studio 2015\Projects\SFML\SFML\main.cpp SFML
Error (active) incomplete type is not allowed 78 c:\Users\Matusz\Documents\Visual Studio 2015\Projects\SFML\SFML\main.cpp SFML
Error (active) incomplete type is not allowed 78 c:\Users\Matusz\Documents\Visual Studio 2015\Projects\SFML\SFML\main.cpp SFML
Error C2228 left of '.type' must have class/struct/union 78 c:\users\matusz\documents\visual studio 2015\projects\sfml\sfml\main.cpp SFML
niewiem czemu nie chce sie skompilowac