Author Topic: SFML program works fine in Codeblocks but not from EXE file.  (Read 289 times)

Offline karpelec

  • Single posting newcomer
  • *
  • Posts: 2
SFML program works fine in Codeblocks but not from EXE file.
« on: March 09, 2018, 04:13:12 pm »
I configured CodeBlocks under MYSYS2 just like on a screenshot:
https://zapodaj.net/images/39af38f140f44.png

After creating EXE file including SFML in Codeblocks under MYSYS2, when I run programme there pops up an error:
"The application was unable to start correctly (0xc000007b).
 Click Okay to close the application"


Before in Codeblocks without MYSYS2 everything was OK.

I will add that in Codeblocks programme  is working normal. But it doen't run from EXE file.

Offline BlueHazzard

  • Lives here!
  • ****
  • Posts: 1849
Re: SFML program works fine in Codeblocks but not from EXE file.
« Reply #1 on: March 09, 2018, 04:45:52 pm »
you are probably missing some dlls. You can use dependency walker to get some idea...

in general msys2 application don't run outside the msys environment...

Offline karpelec

  • Single posting newcomer
  • *
  • Posts: 2
Re: SFML program works fine in Codeblocks but not from EXE file.
« Reply #2 on: March 09, 2018, 06:13:59 pm »
I change Windows environment path from C:\Program Files (x86)\CodeBlocks\MinGW\bin to C:\msys64\mingw64\bin and everything works fine ;D.
« Last Edit: March 10, 2018, 07:02:52 pm by karpelec »