Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Question about 32 bit SFML  (Read 2153 times)

0 Members and 1 Guest are viewing this topic.

nocirclearrows

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Question about 32 bit SFML
« 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.

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Question about 32 bit SFML
« Reply #1 on: October 23, 2018, 12:09:18 am »
Which files did you try and are you sure you're building 64 bit version?
Back to C++ gamedev with SFML in May 2023

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Question about 32 bit SFML
« Reply #2 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. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/