Author Topic: Object output directory  (Read 4567 times)

Offline baska

  • Single posting newcomer
  • *
  • Posts: 5
Object output directory
« 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Object output directory
« Reply #1 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?
(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!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Object output directory
« Reply #2 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline baska

  • Single posting newcomer
  • *
  • Posts: 5
Re: Object output directory
« Reply #3 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".