Author Topic: no bin/release folder is created  (Read 6232 times)

Offline andrei186

  • Single posting newcomer
  • *
  • Posts: 7
no bin/release folder is created
« 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?

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: no bin/release folder is created
« Reply #1 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.

Offline andrei186

  • Single posting newcomer
  • *
  • Posts: 7
Re: no bin/release folder is created
« Reply #2 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 ?

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: no bin/release folder is created
« Reply #3 on: December 13, 2021, 01:01:33 pm »
Select Release in the toolbar and recompile

Offline andrei186

  • Single posting newcomer
  • *
  • Posts: 7
Re: no bin/release folder is created
« Reply #4 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?


« Last Edit: December 13, 2021, 01:45:46 pm by andrei186 »

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: no bin/release folder is created
« Reply #5 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

Offline andrei186

  • Single posting newcomer
  • *
  • Posts: 7
Re: no bin/release folder is created
« Reply #6 on: December 13, 2021, 02:15:06 pm »
Thank you very much, Miguel