I have SFML linked statically, and I've done some googling on my issue. I believe it has to do with global variables, but if that's the issue how can I avoid it when the variable is a static member of the class? Any way to guarantee that it is initialized after all the linking is done?
Root.hpp
#include <SFML/Graphics.hpp>
class Root {
private:
static sf::RenderWindow render_window;
};
Root.cpp
#include "Root.hpp"
sf::RenderWindow Root::render_window;
int main(int argc, char **argv) {
//sf::RenderWindow test(sf::VideoMode(200, 200), "TEST");
return 0;
}