Re: PRO*C question

From: Scott Urman <surman_at_wwsun10.us.oracle.com>
Date: 28 Jul 1994 21:24:20 GMT
Message-ID: <3197m4$ebb_at_dcsun4.us.oracle.com>


In article <318rq8$bi3_at_apakabar.cc.columbia.edu>, sb63_at_namaste.cc.columbia.edu (Semyon Basin) writes:
|>
|> Hi, Everyone!
|> I'm just started to full around with oracle so excuse me for a newbie question.
|> How do i link a program after using PRO*C.
|> Please do not tell me to GET manual and READ it.
|> The only thing which is in a manual is an example of the "make" file:
|> oracle.mk
|> I was trying to use that file without any luck.
|>
|> cc -L/${ORACLE_HOME}/lib -s -o test test.o ${ORACLE_HOME}/lib/libocic.a
|> ${ORACLE_HOME}/lib/osntab.o -lsqlnet -lora -lsqlnet -lora -lnlsrtl -lcv6
|> -lcore -lnlsrtl -lcv6 -lcore -lm -lcore -lm
|>
|> The output is:
|>
|> ld:
|> Undefined:
|> sqlcex
|>
|> If any kind soul have an idea - please help me.
|> George.

You should use proc.mk, not oracle.mk. Try 'make -f proc.mk program', where your file is in program.pc. Don't put the .pc extension. proc.mk can be found in $ORACLE_HOME/proc/demo. sqlcex() is actually defined in libsql.a, found in $ORACLE_HOME/lib under Oracle7, and $ORACLE_HOME/rdbms/lib under version 6. Received on Thu Jul 28 1994 - 23:24:20 CEST

Original text of this message