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
If you need more info to debug let me know.