Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - kornfan

Pages: [1]
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.

#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;
}

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?

Pages: [1]