User forums > Using Code::Blocks

Using Pre-Compilers

(1/1)

SherryH:
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.

thomas:

--- Quote ---I can put the command in the pre-build instructions
--- End quote ---
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.

SherryH:
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.

Navigation

[0] Message Index

Go to full version