Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Jc6828 on May 30, 2012, 05:43:13 pm

Title: Saving the .exe files
Post by: Jc6828 on May 30, 2012, 05:43:13 pm
Hi, Could you tell me please where I set the choice of where C::B saves .exe files as it doesn't seem to save them in the same folder as my .cpp and cbp files but opens a directory called 'outputting' in the parent directory which my project is in.

Sorry it's such a basic (?) question but I have looked everywhere I can think of and can't find a choice anywhere.
Title: Re: Saving the .exe files
Post by: zabzonk on May 30, 2012, 05:57:25 pm
Project|Properties...|Build Targets. Then you specify the path  and executable name in the Output Filename: edit.
Title: Re: Saving the .exe files
Post by: Jc6828 on May 30, 2012, 06:43:48 pm
Ah I see, so you hve to set it differently every time, I was rather hoping it would automatically save it in the directory the .cpp and .cbp files were in.

Thanks anyway.
Title: Re: Saving the .exe files
Post by: zabzonk on May 30, 2012, 07:02:33 pm
> I was rather hoping it would automatically save it in the directory the .cpp and .cbp files were in.

Mostly, you don't want that, as you will have several different build targets (Debug and Release for example), and you want the executables  for the different targets to be put in different places. Putting the executable in the same directory as the .cpp files would only really work for very simple projects.