Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: 16BitBilly on March 04, 2015, 12:17:59 am

Title: Specifying the path where .obj files will be created
Post by: 16BitBilly on March 04, 2015, 12:17:59 am
I currently have a project. The structure of the project is attached along with this message. As you can see the project has a folder in it called option which has a header and a source file.
I know we could specify the folder where object files get created in (Project Properties ->Build Targets -> Objects Output Dir) However the problem that I am facing is that the object files for the files present in the option folder get created in the option folder (next to the headers) What I would like to do is have them created along with the others. So if I specify (obj\Debug\) as Objects output dir I would get main.o created in obj\Debug\ while foo.o would be created in obj\Debug\option\ I would like the foo.o to be created in  obj\Debug\ as well.
Title: Re: Specifying the path where .obj files will be created
Post by: oBFusCATed on March 04, 2015, 12:51:47 am
Why?
Title: Re: Specifying the path where .obj files will be created
Post by: Jenna on March 04, 2015, 06:13:35 am
You can do this already, but only globally for the whole toolchain by checking:
"Settings -> Compiler... -> Global compiler settings -> [your compiler] -> Other settings (rightmost tab) -> Advanced options... -> Other -> Use flat objects"