1
General / Re: Linking SFML 2.0 to MS Visual Studio 2012
« on: November 26, 2012, 02:00:20 am »
I've got the same problem, although I didn't compile libs as @lrk advised.
Code from the tutorials, and it does generate
No build errors, no linker problems, just that. Can I rely on that environment or should I rather change to the VS2010?
#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;
}
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;
}
Code from the tutorials, and it does generate
No build errors, no linker problems, just that. Can I rely on that environment or should I rather change to the VS2010?