Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: PRO*C

Re: PRO*C

From: Johan Wegener <xjw_at_xdde.xdk>
Date: Thu, 8 Jul 1999 14:00:37 +0200
Message-ID: <7m23qg$6d8$1@news101.telia.com>


Francisco Solans <bull_at_posta.unizar.es> skrev i en nyhedsmeddelelse:378460EC.89CFDAF9_at_posta.unizar.es...
> I have made a little program in PRO*C and I don't know how to
> compile the source in Unix.

Unfortunately, the process is not quite that simple. In order to build a running program you must basically carry these steps through: 1) Preprocess your .pc file using Pro*C pre-processer (it is NOT a compiler), this generates a .c file
2) Compile this file using the C compiler of your system, this typically generates an .o file
3) Link this .o file together with all relevant Oracle and OS specific run-time libraries to create a running program

> Can you help me with a little example?

The exact steps you must carry out is highly dependent on your operating system, the version of Oracle, what type of C compiler you use, etc. I suggest you read the online Oracle documentation for your specific brand of system. Oracle supplies a "makefile" that incorporates all the above mentioned steps together with all the nitty-gritty details such as compiler options and relevant run-time libraries. Sorry, I do nat have a Unix system handy, but usually you can find several examples in "$ORACLE_HOME/proc" or something like that.

Johan Received on Thu Jul 08 1999 - 07:00:37 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US