SFML community forums

Help => General => Topic started by: andrei186 on December 12, 2021, 04:48:52 pm

Title: libstdc++-6.dll and libgcc_s_seh-1.dll are not found
Post by: andrei186 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?
Title: Re: libstdc++-6.dll and libgcc_s_seh-1.dll are not found
Post by: eXpl0it3r 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.
Title: Re: libstdc++-6.dll and libgcc_s_seh-1.dll are not found
Post by: andrei186 on December 14, 2021, 03:04:16 pm
Thank you.
If I build it in static mode, will it work on its own?
Title: Re: libstdc++-6.dll and libgcc_s_seh-1.dll are not found
Post by: eXpl0it3r 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. ;)
Title: Re: libstdc++-6.dll and libgcc_s_seh-1.dll are not found
Post by: andrei186 on December 14, 2021, 03:15:08 pm
thank you. I will follow your advice