SFML community forums
Help => General => Topic started by: nocirclearrows on October 22, 2018, 11:42:10 pm
-
Hi guys
I'm building a 64 bit project (x86) C++ project in Visual Studio with SFML.
For some reason, when I imported the 64 bit version of SFML into my project my code wouldn't compile and I got an error about SFML not working on a 64 bit project despite it being the 64 bit version.
After scratching my head for a while wondering why it would not work, I took a shot in the dark and, not expecting it to work, downloaded the 32 bit SFML version and imported it into my project. It compiled.
Can someone explain why this happened? I thought I may have accidentally downloaded the 32 bit version at first but I tried the 64 bit version again and it still didn't work? It's not a major problem as I am happy to use the 32 bit version but I'm just curious why this thing happened.
-
Which files did you try and are you sure you're building 64 bit version?
-
On your first sentence you're contradicting yourself.
x86 refers to 32-bits
x64 refers to 64-bits
So what compiler did you set in your VS project.
Note: By default Win32 (32-bits) is selected, so you must have actively switched. If you haven't, then you're most likely not using the 64-bits compiler. ;)