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.


Topics - Betaserver

Pages: [1]
1
Hello. I'm trying to install SFML 2.0 for Microsoft Visual C++ 2010. Whenever I try to build some sample code to test whether SFML has been installed properly, I get this error:
fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'

 I have looked at many other online resources, but they were either too vague or didn't work. I guess here is the sample code if you want it.

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

I am running Wndows 7 Professional, 64-Bit

Thanks for reading this  :D If you need more info to debug let me know.

Pages: [1]
anything