#include <SFML/Graphics.hpp>
sf::RenderWindow window;
int main(int argc, char** argv){
//if sf::RenderWindow window is here instead, then the code runs fine regardless of linker setup
window.create(sf::VideoMode(300, 300), "Static Linking Test");
sf::CircleShape circle(100, 50);
circle.setPosition(50, 50);
circle.setFillColor(sf::Color(0, 255, 0));
while (window.isOpen()){
sf::Event event;
while (window.pollEvent(event)){
if (event.type == sf::Event::Closed){
window.close();
}
}
window.clear();
window.draw(circle);
window.display();
}
window.close();
return 0;
}