SFML community forums
Help => General => Topic started 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?
-
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.
-
Thank you.
If I build it in static mode, will it work on its own?
-
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. ;)
-
thank you. I will follow your advice