Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: ellep on July 19, 2010, 05:55:43 pm

Title: How to build all object files in a single directory [SOLVED]
Post by: ellep on July 19, 2010, 05:55:43 pm
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
Title: Re: How to build all object files in a single directory
Post by: stahta01 on July 19, 2010, 05:58:24 pm
work around 1: use a makefile
Title: Re: How to build all object files in a single directory
Post by: oBFusCATed on July 19, 2010, 09:38:54 pm
work around2: pack the files in static libraries
Title: Re: How to build all object files in a single directory
Post by: ellep 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.
Title: Re: How to build all object files in a single directory
Post by: ellep 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