Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: andrei186 on December 13, 2021, 09:59:38 am

Title: no bin/release folder is created
Post 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?
Title: Re: no bin/release folder is created
Post by: Miguel Gimenez on December 13, 2021, 12:00:09 pm
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.
Title: Re: no bin/release folder is created
Post by: andrei186 on December 13, 2021, 12:55:49 pm
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 ?
Title: Re: no bin/release folder is created
Post by: Miguel Gimenez on December 13, 2021, 01:01:33 pm
Select Release in the toolbar and recompile
Title: Re: no bin/release folder is created
Post by: andrei186 on December 13, 2021, 01:38:32 pm
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?


Title: Re: no bin/release folder is created
Post by: Miguel Gimenez on December 13, 2021, 01:54:45 pm
Quote
Do I understand it correctly that if I build it with satatic libraries these DLL will be included into the .exe?
Yes
Title: Re: no bin/release folder is created
Post by: andrei186 on December 13, 2021, 02:15:06 pm
Thank you very much, Miguel