How to compile pro*c, C programs

Hi,

How to precompile the c program which has proc statements within it.

If it is only c, I will use the following cmd

cc filename.c -o output

so please tell me what command I have to use for precompilation.

I beleave that this is not an oracle or proc forum, but still I hope will get the assistance.

First generate the .c code from .pc.

proc -iname=filename.pc

Then generate the .o file

cc -I${ORACLE_HOME}/precomp/public -c filename.c

After that link the .o to libraries and produce the exe.

cc -o exe_name -L $ORACLE_HOME/lib -lclntsh

This is an obscure way of doing things. Generate a make file and try to put all your options in that. Also, read the txt doc attached for more details.

2 Likes