Hi,
New SFML user here. I've been following this tutorial here:
http://www.sfml-dev.org/tutorials/2.3/start-vc.phpOnce I tried running the example code, I got these errors on Debug:
error LNK2001: unresolved external symbol "public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B)
error LNK2001: unresolved external symbol "public: static class sf::Color const sf::Color::Green" (?Green@Color@sf@@2V12@B)
However when I run it on Release, it works just fine. What could be the cause of this?
I have these libraries in both my Debug and Release:
sfml-graphics.lib
sfml-window.lib
sfml-system.lib
(Example code I'm referring to:)
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(shape);
window.display();
}
return 0;
}
Thank you in advance!