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

Author Topic: the procudure entry point _ZNSt15basic.....ESt13_Ios_Openmode could not be...  (Read 1375 times)

0 Members and 1 Guest are viewing this topic.

promitheas

  • Newbie
  • *
  • Posts: 2
    • View Profile
hey to everyone!

the pop up error :
"the procudure entry point
_ZNSt15basic_streambuflcSt11char_traitsIcEE7seekposEst4fposliESt13_Ios_Openmode could not be located in the dynamic link library C:\project\sfml-system-2.dll"



I spent a ton of hours to build and link my first sfml program. I build and link without error and the executable created, but when
i try to run it a pop up error appears : the procudure entry point
_ZNSt15basic_streambuflcSt11char_traitsIcEE7seekposEst4fposliESt13_Ios_Openmode could not be located in the dynamic link library C:\project\sfml-system-2.dll

The SFML located in C:\SFML\

I use VS code and compiler:
C:\Windows\System32>g++ --version
g++ (Rev3, Built by MSYS2 project) 13.2.0

the downloaded SFML is:
 SFML 2.6.0 and GCC 13.1.0 MinGW (SEH) - 64-bit

my command in terminal is: g++ -IC:\SFML\include -c test.cpp -o test.o and
                     g++ -LC:\SFML\lib .\test.o -o app.exe -lsfml-graphics -lsfml-window -lsfml-system -lsfml-main -mwindows
                     
                     
In environment variable PATH i added the msys64 and SFML/bin

if anyone can help i would greatly appreciate it!




eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11018
    • View Profile
    • development blog
    • Email
The download page states:

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)

I use VS code and compiler:
C:\Windows\System32>g++ --version
g++ (Rev3, Built by MSYS2 project) 13.2.0

the downloaded SFML is:
 SFML 2.6.0 and GCC 13.1.0 MinGW (SEH) - 64-bit
Your compiler version 13.2.0 doesn't match exactly the compiler used to build the package (13.1.0). ;)

Download the compiler linked or rebuild SFML with your compiler.

Or the most recommended way is to get the SFML CMake template and for VS Code it's also recommended to install the CMake extension, which then build SFML and your application at the same time and you don't have to do any magic commands.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

promitheas

  • Newbie
  • *
  • Posts: 2
    • View Profile


I have rebuilded SFML with my compiler.
It is my first steps with SFML and i find it very kindly and convenient with very good documentation!


Thank you very much eXpl0it3r! for your quick respose!