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

Author Topic: Cannot find entry point of procedure  (Read 1777 times)

0 Members and 1 Guest are viewing this topic.

fwsmit

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Cannot find entry point of procedure
« on: June 25, 2017, 09:35:25 pm »
When I build run sfml project in my ide (codeblocks with minGW) it works just fine, but when I then try executing the executable outside the ide (in the explorer) it gives an error message (translated): "Cannot find entry point of procedure (...) in DLL-file sfml-system-d-2.dll" and it wont run.
I just run the standard sfml 'hello world' program and I followed all the steps of the setup procedure. I chose to do dynamic binding.
 

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Cannot find entry point of procedure
« Reply #1 on: June 25, 2017, 09:51:19 pm »
What DLLs did you copy next to your executable? Did you copy the runtime DLLs from your MinGW bin folder?
Did you copy the right SFML DLL next to your executable?

What's the exact error message?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

fwsmit

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Cannot find entry point of procedure
« Reply #2 on: June 26, 2017, 08:38:45 pm »
I tried to copy some of the files in minGw\bin, but not all of them. Now I just copied all of them in the executable folder and now it works. Do you know which ones I need so it looks a bit cleaner?

(I already wrote this, maybe this is of some use)
((These are the dll's I copied to the directory the executable is in:
 openal32.dll
sfml-audio-2.dll
sfml-audio-d-2.dll
sfml-graphics-2.dll
sfml-graphics-d-2.dll
sfml-network-2.dll
sfml-network-d-2.dll
sfml-system-2.dll
sfml-system-d-2.dll
sfml-window-2.dll
The full translated error message is: Cannot find entry point of procedure _ZSt24_throw_out_of_range_fmtPKcz in DLL-file [ProjectFolder]\bin\Debug\sfml-system-d-2.dll.))