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

Author Topic: libstdc++-6.dll and libgcc_s_seh-1.dll are not found  (Read 4938 times)

0 Members and 1 Guest are viewing this topic.

andrei186

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
libstdc++-6.dll and libgcc_s_seh-1.dll are not found
« on: December 12, 2021, 04:48:52 pm »
I set up CodeBlocks with SFML to use dynamic libraries. After building and running HallowWord it created bin folder with debug folder in it, but no release folder - should it be like that?
Although from IDE it runs OK, but the exe file genereated in bin/debug  keeps saying that  libstdc++-6.dll and
libgcc_s_seh-1.dll  are not found  - is this normal?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: libstdc++-6.dll and libgcc_s_seh-1.dll are not found
« Reply #1 on: December 14, 2021, 02:28:30 pm »
It will also create a release folder once you create a release build.

The mentioned DLLs are provided by MinGW and are needed to run the application.
When you execute the application from within the IDE, it will load them automatically.
But to run it manually, you'll need to find the MinGW folder and copy them from the bin directory.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

andrei186

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Re: libstdc++-6.dll and libgcc_s_seh-1.dll are not found
« Reply #2 on: December 14, 2021, 03:04:16 pm »
Thank you.
If I build it in static mode, will it work on its own?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: libstdc++-6.dll and libgcc_s_seh-1.dll are not found
« Reply #3 on: December 14, 2021, 03:10:33 pm »
If you build SFML with SFML_USE_STATIC_STD_LIBS enabled and use the -static linker command for your own code, then you won't need the two DLLs, but you'll have to specify all SFML dependencies.
Personally, I recommend to stick with your currently working setup and get some more into SFML, before changing things and spending a lot of time, getting the setup right. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

andrei186

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Re: libstdc++-6.dll and libgcc_s_seh-1.dll are not found
« Reply #4 on: December 14, 2021, 03:15:08 pm »
thank you. I will follow your advice