News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Object output directory

Started by baska, October 19, 2009, 06:09:13 PM

Previous topic - Next topic

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?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

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?
No. As oBFusCATed already pointed out this would certainly make no sense and break nearly every 2nd project to be compiled correctly.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

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".