SFML community forums

Help => Window => Topic started by: Powereleven on May 04, 2019, 02:48:25 pm

Title: Can't declare global window when linking statically
Post by: Powereleven 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?
Title: Re: Can't declare global window when linking statically
Post by: G. 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.