Hello SFML community,
I know I'm not the first one with this error but I found no post that helps me with my problem
.
I'm getting the "LNK1112: module machine type 'x64' conflicts with target machine type 'X86'" error while I'm trying to compile the SFML window test code:
#include "stdafx.h"
#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'm using Visual Studio Community 2017 and the precompiled SFML 2.4.2 in the 32 bit version (I also tried the 64 bit version in a new project but get the same error
) All prperties are set to x86 (also the machine setting in the linker options).
I'm runnings this on a 64 bit Windows 10 PC.
So what did I wrong? I used SFML earlier without such a problem (at this point thank you for the very good starting tutorials!). I would be happy if someone has a helpful idea
.