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 Libraries

Re: Pro*C Libraries

From: Timo Haatainen <Timo.Haatainen_at_tietogroup.com>
Date: 1997/11/18
Message-ID: <34714917.261E@tietogroup.com>#1/1

Ms Z.Li wrote:
>
> Dear All
>
> Recently we have installed the new version of Oracle, Version 7.33
> and also the Pro*C. When we use the script, which we used to use
> , to compile an sample program, we got the error message that the
> library
> -lora couldn't be found. When I checked the "lib" dir under the
> $ORACLE_HOME, I couldn't find "libora.a" either, so what is the
> substitute?
>
> Anything else has changed from Pro*C ver 2.o to ver 2.2.3?
>
> Thank you for any help.
>
> Zhuang Li from Liverpool University, UK
>
> The Error message is as follows:
> ====================================================================================
> $ORACLE_HOME/bin/proc iname=sample1.pc
> include=$ORACLE_HOME/sqllib/publi
> c ireclen=132 oreclen=132 select_error=no ltype=none dbms=V6
>
> Pro*C/C++: Release 2.2.3.0.0 - Production on Fri Nov 14 12:16:44 1997
>
> Copyright (c) Oracle Corporation 1979, 1996. All rights reserved.
>
> System default option values taken from:
> /usr/oracle733/product/733/precomp/admi
> n/pcscfg.h
>
> cc -I/usr/oracle733/product/733/precomp/public -O
> -L/usr/oracle733/product/733/l
> ib -o sample1 sample1.c -lsql /usr/oracle733/product/733/lib/osntab.o
> -lsqlnet -
> lora -lsqlnet -lora -lnlsrtl -lcv6 -lcore -lnlsrtl -lcv6 -lcore -lseq
> -lsocket -
> lmalloc -lnsl -lseq -lm -lelf -lptx44stb
> ld: fatal error: library not found: -lora
> *** Error code 1
> Make: . Stop.
>
> =================================================================================

You can check out Oracle's makefile for building demos. Makefile is $ORACLE_HOME/precomp/demo/proc/proc.mk.
We link our programs against shared library of Oracle ($ORACLE_HOME/lib/libclntsh.sl) and this is the only library we need (from Oracle).

Hope this helps.

-- 

Timo Haatainen
Carelcomp Forest Oy
Received on Tue Nov 18 1997 - 00:00:00 CST

Original text of this message

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