SFML community forums

Help => General => Topic started by: nocirclearrows on October 22, 2018, 11:42:10 pm

Title: Question about 32 bit SFML
Post 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.
Title: Re: Question about 32 bit SFML
Post by: FRex on October 23, 2018, 12:09:18 am
Which files did you try and are you sure you're building 64 bit version?
Title: Re: Question about 32 bit SFML
Post by: eXpl0it3r on October 23, 2018, 12:23:58 am
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. ;)