Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: baska on October 19, 2009, 06:09:13 pm

Title: Object output directory
Post by: baska on October 19, 2009, 06:09:13 pm
Hi.

I am new here.

Is there any posibility to change (Settings) that all object files are compiled into one object directory regardless of the directory structure of the source files?

Thanks
Title: Re: Object output directory
Post by: oBFusCATed on October 19, 2009, 06:50:54 pm
Why do you care and what will happen if you have src/sub1/file.cpp and src/sub2/file.cpp?
Title: Re: Object output directory
Post by: MortenMacFly on October 20, 2009, 07:28:07 am
Is there any posibility to change (Settings) that all object files are compiled into one object directory regardless of the directory structure of the source files?
No. As oBFusCATed already pointed out this would certainly make no sense and break nearly every 2nd project to be compiled correctly.
Title: Re: Object output directory
Post by: baska on October 20, 2009, 10:06:53 am
Thanks for your answer.

I try to use C::B in my embedded development. In embedded case, linker script tells what kind of object section is linked and located at where. Therefore it is easy if all compiled objects are in one folder, (it means no need to specify relative paths of the object file in linker script).

I have found one Workaround in "Advanced compiler options".