Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: andrei186 on December 13, 2021, 09:59:38 am
-
I've set CodeBlock to work with SFML. The test code build and runs OK. But it creates bin/debug folder and does not create bin/release
Which setting do I need to tune to get bin/release?
-
The setting is in Project -> Properties -> Build targets -> Output filename, there is one per target.
This said, the bin/release folder will be created only when you compile the binary using the Release target.
-
English is not my mother tongue - I am afraid I do not quite understand you.
On Project -> Properties -> Build targets I have both Debug and Release
In Debug Output filename points at bin\Debug\p1.exe
In Release Output filename points at bin\Release\p1.exe
What should I change to get bin\Release\p1.exe ?
-
Select Release in the toolbar and recompile
-
Thank you very much! That was easy!
It worked.
I expected the resulting .exe file in Release would run on its own without CodeBlock IDE. However it keeps throwing: cannot find libgcc_s_seh-1.dll, libstdc++-6.dll and libwinpthread-1.dll
These files are sitting in C:\Program Files\CodeBlocks\MinGW\bin
I copied them into the same Release folder - now it is working.
Do I understand it correctly that if I build it with satatic libraries these DLL will be included into the .exe?
-
Do I understand it correctly that if I build it with satatic libraries these DLL will be included into the .exe?
Yes
-
Thank you very much, Miguel