Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Window
»
Can't declare global window when linking statically
Print
Pages: [
1
]
Author
Topic: Can't declare global window when linking statically (Read 2634 times)
0 Members and 1 Guest are viewing this topic.
Powereleven
Newbie
Posts: 36
Can't declare global window when linking statically
«
on:
May 04, 2019, 02:48:25 pm »
I get the error "Access violation writing location" when I declare a global sf::RenderWindow, but it works when linking dynamically. What could be happening?
Logged
G.
Hero Member
Posts: 1593
Re: Can't declare global window when linking statically
«
Reply #1 on:
May 04, 2019, 03:22:32 pm »
It can happen when you declare global SFML resources like windows or textures, thus it is not recommended.
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
Window
»
Can't declare global window when linking statically