Re: [Q] How to compile C program in Oracle?

From: Tommy Wareing <p0070621_at_brookes.ac.uk>
Date: 1995/08/15
Message-ID: <40pq5q$ime_at_cs3.brookes.ac.uk>#1/1


In article <14AUG199515482551_at_ubvms.cc.buffalo.edu>, Qiang Hong says...
>
>Sorry for this simple question:
>
>I tried to compile the sample1.pc program in the demo directory
>of proc of Oracle/7.1.6 but couldn't succeed. First I precompiled
>sample1.ps using command "proc sample1.pc", then when I compiled
>the resulting sample1.c program using "cc -I$ORACLE_HOME/sqllib/public
>sample1.c", I got the following error msg:
>Undefined first referenced
> symbol in file
>sqlcex sample1.o
>sqlglm sample1.o
>
>Could somebody point out what's wrong? Thank you!

Look in the makefile $ORACLE_HOME/proc/demo/proc.mk. The command we use (on a Sequent, so your command may vary) is:

cc -L$ORACLE_HOME/lib REG_BARCODE.c -o REG_BARCODE\ -lsql $ORACLE_HOME/lib/osntab.o -lsqlnet -lora -lsqlnet -lora\ -lnlsrtl -lcv6 -lcore -lnlsrtl -lcv6 -lcore -lld -lmalloc -lseq\ `cat $ORACLE_HOME/rdbms/lib/sysliblist`

-- 
 _________________________   __________________________________________
/  Tommy Wareing          \ /  I've been looking for an original sin,  \
|  p0070621_at_brookes.ac.uk  X   One with a twist and a bit of a spin    |
\  0865-483389            / \     -- Pandora's Box, Jim Steinman       /
 ~~~~~~~~~~~~~~~~~~~~~~~~~   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Received on Tue Aug 15 1995 - 00:00:00 CEST

Original text of this message