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: How to complie pro*c program

Re: How to complie pro*c program

From: bjw <bjw_at_superstar.co.kr>
Date: Fri, 09 Oct 1998 18:25:51 +0900
Message-ID: <361DD69E.BDE99C4D@superstar.co.kr>


Wali Haidri wrote:

> I am trying to compile an old pro*C program on HP 10.2 with oracle
> 7.3.3.
> I have a proc.mk and a script like sample.pc.
>
> Can somebody e-mail me directly what steps should be taken.
>
> I tried the instructions in proc.mk file but I am confused because I
> have never done
> it before.
>
> Thanks.

Hi.
This is simple ?

  1. Case 1 : ORACLE Server version 7.0.X

   You can get result by following below step.

   [STEP]

  1. unix$ cd $ORACLE_HOME/proc/demo
  2. unix$ make -nf proc.mk sample1 > mk
  3. unix$ vi mk replace sample1 with $1
       /usr3/ora7016/bin/proc ireclen=132 oreclen=132 select_error=no
       iname=$.pc
       /usr3/ora7016/bin/echodo cc -I. -O -L/usr3/ora7016/lib -o $1 $1.c

       /usr3/ora7016/lib/libsql.a /usr3/ora7016/lib/osntab.o -lsqlnet
-lora
       /usr3/ora7016/lib/libpls.a -lsqlnet -lnlsrtl -lcv6 -lcore
-lnlsrtl
       -lcv6  -lcore  -lld -lmalloc -lseq `cat /usr3/ora7016/rdbms/lib
        /sysliblist`

    4. unix$ chmod 777 mk

    5. unix$ ./mk sample2

The result file sample2 was created in your system !

 B. Case 2 : ORACLE Server Version 7.1.X, 7.2.X 7.3.x higher...

  < PROC Version 1.X >

   In this case :
   [STEP]

  1. unix$cd $ORACLE_HOME/proc16/demo
  2. unix$make -nf proc16.mk sample1 > mk
  3. unix$The remaining step are the same upper describe contents.

  < PROC Version 2.X >
   In this case :

   [STEP]

  1. unix$cd $ORACLE_HOME/proc/demo
  2. unix$make -nf proc.mk OBJS=sample1.o EXE=sample1 > mk
  3. The remaining step are the same upper describe contents.

You can acquire Oracle PROC Version by just write in command line like a 'unix$ $ORACLE_HOME/proc'

I wish, this contents helpful for you ! Good lock and sorry for my english !
PS : You can get more information in 'http://www.oracle.com' Techincal bulletin Section Received on Fri Oct 09 1998 - 04:25:51 CDT

Original text of this message

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