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

Author Topic: SFML and Linux - Compiling issue  (Read 2833 times)

0 Members and 1 Guest are viewing this topic.

everydayperson

  • Newbie
  • *
  • Posts: 1
    • View Profile
SFML and Linux - Compiling issue
« on: July 21, 2024, 12:37:54 am »
Hello, I've been trying to set up Visual Studio Code and sfml for 2 days now and I'm currently stuck following the guide

Specifically at this step

I don't believe I'm missing anything. I have SFML 2.6.1, I have the correlating mingw64 version both on x64. I have MSYS installed and it's in my path. I have everything in my included path and compiled path. I tried different iterations for the terminal and nothing works.

I don't know the problem and need help. I uploaded pictures of the errors, I'm not sure how to just have the picture in my post.
« Last Edit: July 21, 2024, 05:52:38 am by everydayperson »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: SFML and Linux - Compiling issue
« Reply #1 on: July 29, 2024, 11:37:23 am »
Your title is a bit misleading, given that you're not actually trying to compiler SFML under Linux :D

Did you read the text on the download page as well:

Quote
**Unless you are using a newer version of Visual Studio, the compiler versions have to match 100%!** 
Here are links to the specific MinGW compiler versions used to build the provided packages: 
WinLibs MSVCRT 13.1.0 (32-bit)WinLibs MSVCRT 13.1.0 (64-bit)

Since you're using a MSYS provided compiler, you cannot use the pre-build binaries, since they won't match.
We recommend using the CMake template, that will automatically build SFML for you.
Alternatively, you'll have to build SFML yourself.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/