Re: What is Pro*C?

From: MotoX <rat_at_tat.a-tat.com>
Date: Wed, 7 Oct 1998 08:25:20 +0100
Message-ID: <907745019.20208.0.nnrp-10.c2de712e_at_news.demon.co.uk>


It's a 'pre-compiler' - sort of like the first pass of 'cc'.

You can freely mix SQL in your C programs, but of course a C compiler would reject it all. You run the Oracle Pro*C precompiler across your source code (C with embedded SQL) and it swaps the SQL for library calls to Oracle libraries. You then link the binaries with the Oracle libraries and hey presto, a C program that talks to Oracle! :-) You tend to run all this automated via a 'make' script.

If you want to go a pure API route, you can use the Oracle Call Interface instead. You get the docs for this with the Pro*C stuff. If you use OCI, you don't need to use the Pro*C precompiler, but, of course, you code is going to be less easy to port to other db's.

MotoX

Ken Ho Kwok Fai wrote in message <6vdoe5$ok0_at_eng-ser1.erg.cuhk.edu.hk>...
>Could anyone tell me what is the Pro*C and what is the function of it?
>Thanks.
>
>Regards,
>Ken
Received on Wed Oct 07 1998 - 09:25:20 CEST

Original text of this message