Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: SherryH on August 23, 2007, 03:01:44 am

Title: Using Pre-Compilers
Post by: SherryH on August 23, 2007, 03:01:44 am
Hi, is there a way to associate pre-complie steps by file extension?
 I am using Oracle ProC to build database applications. My pro-c files end with a .pc extension. Is there anyway to specify instructions to invoke pro-c to generate .c file from the .pc version prior to invoking the CC compiler?

I know at the package level, I can put the command in the pre-build instructions.
Title: Re: Using Pre-Compilers
Post by: thomas on August 23, 2007, 09:16:30 am
Quote
I can put the command in the pre-build instructions
That's inconvenient, but currently the only way you can do it. Worse, you will have to add dummy files too, because you can't add files to a project that do not exist.
What you want might work in the future with the next-gen build system, but under the current one, I see no way.
Title: Re: Using Pre-Compilers
Post by: SherryH on August 24, 2007, 03:39:10 am
I ended up adding the precompiler command as a tool and then once it has run adding the generated .c file to the project. This is very awkward!
I must say everything else works great! Hopefully, a more elegant solution will be available in a future release.