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

Author Topic: error during initialisation of SFML  (Read 251 times)

0 Members and 1 Guest are viewing this topic.

Epichado04

  • Guest
error during initialisation of SFML
« on: May 21, 2024, 11:21:56 am »
Hi everyone.
I have a problem with the use of SFML.
I have tried to use SFML for a work study. I have see many tutos and read the documentation, but everytime i tried to install it and start the easiest program to see the window open, it doesn't work.
I have this error which pop:

The procedure entry point _ZNSt15basic_streambuflcSt11char_traitslcEE7seekposESt4fposliESt13_los_Openmode is not found in the dynamic link library C:\Users\epichado\OneDrive\Documents\Epitech\Cours\ApprentissageC++\asteroide\sfml-system-2.dll.

I don't know how to repair this error.
If somebody can help me, it will be a pleasure!
(Excuse my english, i'm a french guy so i probably make some mistake in my post)

Thanks !

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10908
    • View Profile
    • development blog
    • Email
Re: error during initialisation of SFML
« Reply #1 on: May 27, 2024, 02:09:15 pm »
Just in case someone finds this post or the original poster checks again.

Those kinds of errors are usually an indication that a wrong runtime library was used.
Runtime libraries have to match 100% between that one used with SFML and then one that gets linked into your application.
This means, one needs to make sure to use the exact same compiler version (not just GCC version, but the whole configuration!). Or even simpler, build SFML with your compiler, that guarantees it matches. See also the SFML CMake Template.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/