Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Window
»
The code does not function when the SFML library is connected.
Print
Pages: [
1
]
Author
Topic: The code does not function when the SFML library is connected. (Read 2680 times)
0 Members and 1 Guest are viewing this topic.
barabam
Newbie
Posts: 1
The code does not function when the SFML library is connected.
«
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.
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11030
Re: The code does not function when the SFML library is connected.
«
Reply #1 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.
Logged
Official FAQ:
https://www.sfml-dev.org/faq.php
Official Discord Server:
https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog:
https://duerrenberger.dev/blog/
Print
Pages: [
1
]
SFML community forums
»
Help
»
Window
»
The code does not function when the SFML library is connected.