Hi guys.. I have a problem
The error is in the Debug mode, in Release is all ok.
Compiling this code:
#include <SFML/Graphics.hpp>
#include <boost\shared_ptr.hpp>
int main(void)
{
sf::RenderWindow *window= new sf::RenderWindow(sf::VideoMode(800, 600), "SFML window",sf::Style::Close);
sf::Text testo;
testo.setPosition(200,200);
testo.setString("Hello World");
while (window->isOpen())
{
sf::Event event;
while (window->pollEvent(event))
{
if (event.type == sf::Event::Closed)
window->close();
}
window->clear();
window->draw(testo);
window->display();
}
return 0;
}
I got this error
1>main.obj : error LNK2001: extern symbol "public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B)
The error is on the call of
"window->draw(testo)", how can I solve ?
Ty !