Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - oritsemisan

Pages: [1]
1
Here  are the errors as requested

2
I have searched through the internet yet I can't find a solution to my VS 2022 "no .exe file found" error. I am a newbie in SFML and I followed every step on how to install SFML on VS code from the SFML website.

When I start a new console Project, I made sure it was an empty Project (check that check box). Add a .cpp file manually. Link all files to the Project and run the small code snippet from the example.

I also followed all the steps in adding the include and lib files to the projects properties yet when I compile, the folders for release and debug are created inside the Projects folder, yet I get a warning that the compiler can't find the Projects exe-file. This warning Starts with "There were build errors. Would you like to continue and run the last successful build?" which I always click yes then it gives the error.

The error is something like this - Unable to start Program:  '"c:\users\name\documents\Projects\ConsoleApplication1\Debug\ConsoleApplication1.exe"' The system cannot find the file specified . . .

Has anyone any ideas?

Here is my code though
#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
    sf::CircleShape shape(100.f);
    shape.setFillColor(sf::Color::Green);

    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }

        window.clear();
        window.draw(shape);
        window.display();
    }

    return 0;
}
 

Pages: [1]