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

Author Topic: .exe don't work  (Read 1041 times)

0 Members and 1 Guest are viewing this topic.

DarkPeace

  • Newbie
  • *
  • Posts: 1
    • View Profile
.exe don't work
« on: June 18, 2022, 02:06:51 am »
Hello everyone! Sorry for my english.

I know my problem is on many forums, but I did'nt found the good answer.

I have Code Blocks 20.03 and SFML 2.5.1 on Windows 10. Also, I'm a beginner with C++ and SFML.

When I compile my graphic project in Code Blocks it's all good, but when I open the executable in bin/Debug directory, it don't work. First, a message said for missing dll (libgcc_s_seh-1.dll, libstdc++-6.dll and libwinpthread-1.dll), but I found them and pasted it in the executable directory. Now, the problem is the .exe open, but close immediately.

I tried the getchar() trick at the end of my code, but I think it's only for console projects.

Thanks.

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: .exe don't work
« Reply #1 on: June 23, 2022, 10:35:20 pm »
It's likely failing at some point due to a missing file as the working directory may be different from within the IDE.

Another possibility - if you're linking dynamically - is to check that you have SFML DLL files where you need them (e.g. in the same directory as the executable).
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

 

anything