0

I have tried to use SFML but it does not work The error is to do with importing the library, i couldn't figure out to install it, i tried multiple tutorials, but all have failed so far.

#include <iostr>

#include <SFML/Network.hpp>
#include <SFML/Graphics.hpp>
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
#include <SFML/Audio.hpp>

//using namespace sf;

int main() {
    //window
    sf::Window window(sf::Videomode(640, 480), "My first game", sf::Style::Titlebar | sf::Style:: Close);
    sf::Event ev;

    //Game loop
    while (window.pollEvent(ev)) {
        //Event polling
        switch () {

        }
    }

    return 0;
}

Errors and code in VS

user17732522
  • 53,019
  • 2
  • 56
  • 105
Smitthe
  • 11
  • 1

0 Answers0