SFML community forums

Help => Window => Topic started by: barabam on August 30, 2024, 11:02:27 am

Title: The code does not function when the SFML library is connected.
Post by: barabam on August 30, 2024, 11:02:27 am
I tried to connect the SFML library in Visual Studio 2022, but the code I copied from an external source did not run and threw errors related to the "event" variable.
Title: Re: The code does not function when the SFML library is connected.
Post by: eXpl0it3r on August 30, 2024, 11:26:12 am
I recommend to not use using namespace sf;.

VS somehow thinks sf::Event is incomplete.
Make sure you're including the correct headers.