User forums > Using Code::Blocks
Object output directory
(1/1)
baska:
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
oBFusCATed:
Why do you care and what will happen if you have src/sub1/file.cpp and src/sub2/file.cpp?
MortenMacFly:
--- Quote from: baska on October 19, 2009, 06:09:13 pm ---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?
--- End quote ---
No. As oBFusCATed already pointed out this would certainly make no sense and break nearly every 2nd project to be compiled correctly.
baska:
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".
Navigation
[0] Message Index
Go to full version