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

Author Topic: entry point error  (Read 1597 times)

0 Members and 1 Guest are viewing this topic.

maxamed dahir

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
entry point error
« on: October 13, 2017, 07:11:11 pm »
when I try to run a successfully compiled sfml program this error occurs

Code: [Select]
The procedure entry point __gxx_personality_v0 could not be located in the dynamic link library C:\Users\Owner\Desktop\sfml_test\ball.exe.

The procedure entry point _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12find_last_ofEPKcjj could not be located in the dynamic link library C:\Users\Owner\Desktop\sfml_test\sfml-graphics-2.dll.

The procedure entry point _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc could not be located in the dynamic link library C:\Users\Owner\Desktop\sfml_test\sfml-window-2.dll.

The procedure entry point _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEj could not be located in the dynamic link library C:\Users\Owner\Desktop\sfml_test\sfml-system-2.dll.

sfml master compiled with mingw-w64 gcc7.1 on windows 10

directory structure:
├── ball.cpp
├── ball.exe
├── openal32.dll
├── sfml
│   ├── bin
│   ├── cmake
│   ├── include
│   ├── lib
│   ├── license.md
│   └── readme.md
├── sfml-audio-2.dll
├── sfml-graphics-2.dll
├── sfml-network-2.dll
├── sfml-system-2.dll
└── sfml-window-2.dll

command I have used to compile the program
Code: [Select]
g++ -std=c++11 ball.cpp -o ball.exe -Isfml\include\ -Lsfml\lib\ -lsfml-graphics -lsfml-window -lsfml-system

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: entry point error
« Reply #1 on: October 13, 2017, 08:25:33 pm »
If you managed to build it, then it sounds like you're using DLLs that don't match the import library files you've used to compile your application.
Make sure to use the matching DLLs.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/