Author Topic: How to build all object files in a single directory [SOLVED]  (Read 3636 times)

Offline ellep

  • Single posting newcomer
  • *
  • Posts: 3
I'm trying to use the Microchip C30 compiler in Code::Blocks, so far this seems to be going fairly well except for the linker step.
The linking fails with error 255, which indicates that the input line is too long. (and yes, it is loooong, ~10000 characters)
The Microchip IDE MPlab can compile the projects, the main difference is that CB duplicates the folder structure of the input files in the obj directory.
This lead to much longer filenames, and so building into a single directory might make it possible to build my project.

Any pointer on where to look for such an option, if it even exist?
Any workarounds?

CB version is 10.05
« Last Edit: July 20, 2010, 10:05:17 am by ellep »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: How to build all object files in a single directory
« Reply #1 on: July 19, 2010, 05:58:24 pm »
work around 1: use a makefile
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: How to build all object files in a single directory
« Reply #2 on: July 19, 2010, 09:38:54 pm »
work around2: pack the files in static libraries
(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 ellep

  • Single posting newcomer
  • *
  • Posts: 3
Re: How to build all object files in a single directory
« Reply #3 on: July 19, 2010, 11:51:15 pm »
The custom makefile may not be such a bad idea, I'll look into it (I've never done that before :)).
I'd rather not pack the files, being able to compile the entire project at once was one of the reasons to try CB, as the project had lots of complicated dependency chains.

Offline ellep

  • Single posting newcomer
  • *
  • Posts: 3
Re: How to build all object files in a single directory
« Reply #4 on: July 20, 2010, 10:05:03 am »
I found the option: settings->compiler and debugger-> [select compiler] -> other settings -> advanded options -> others -> use flat objects