Author Topic: Using Pre-Compilers  (Read 3221 times)

SherryH

  • Guest
Using Pre-Compilers
« 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.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Using Pre-Compilers
« Reply #1 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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

SherryH

  • Guest
Re: Using Pre-Compilers
« Reply #2 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.