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

Author Topic: Can't declare global window when linking statically  (Read 261 times)

0 Members and 1 Guest are viewing this topic.

Powereleven

  • Newbie
  • *
  • Posts: 32
    • View Profile
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?

G.

  • Hero Member
  • *****
  • Posts: 1470
    • View Profile
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.