Re: Using Pro*C ?

From: Peter Sylvester <peters_at_mitre.org>
Date: 2 Mar 1995 21:50:46 GMT
Message-ID: <peters-0203951651280001_at_peter.mitre.org>


In article <3j2ne2$dbk_at_kocrsv08.delcoelect.com>, awdorrin_at_ictest.delcoelect.com (Albert W. Dorrington) wrote:

> cc sample.c
> ld: Undefined symbol
> _sqlexe
> _sqltfl
> _sqlopn
> _sqlrol
> _sqlsca
> _sqlosq
> _sqlscc
> _sqlcom
> _sqlad2
> _sqlsch
> _sqlbs2
> _sqllo2
> _sqlfch

You need to add the following definition to your Makefile, and include it in the link step. Make sure $ORACLE_HOME points to the right place.

ORALIBS= \
 -L$(ORACLE_HOME)/lib \
 $(ORACLE_HOME)/lib/libsql.a \
 $(ORACLE_HOME)/lib/osntab.o \
 -lsqlnet \
 -lora \
 $(ORACLE_HOME)/lib/libpls.a \

 -lsqlnet \
 -lnlsrtl \
 -lcv6 \
 -lcore \
 -lnlsrtl \
 -lcv6 \
 -lcore \

 `cat $(ORACLE_HOME)/rdbms/lib/sysliblist` Received on Thu Mar 02 1995 - 22:50:46 CET

Original text of this message