Compiling after Using Pro*C

From: Mark Anderson <anderson_at_mitre.org>
Date: Sat, 09 May 1998 16:33:16 -0400
Message-ID: <3554BD8C.B51D7B4D_at_mitre.org>



I am writing my first C program for Oracle using Pro*C 2.0.6 (on Solaris 2.5.1). When I try to compile the pre-processed .c file, I get the following error:

Pro*C: Release 2.0.6.0.0 - Production on Sat May 9 16:17:44 1998

Copyright (c) Oracle Corporation 1979, 1994. All rights reserved.

System default option values taken from: /home/ORACLE/proc/pmscfg.h

gcc -I/home/ORACLE/sqllib/public mark1.c

Undefined                       first referenced
 symbol                             in file
sqlcex                              /var/tmp/cca000Es1.o
ld: fatal: Symbol referencing errors. No output written to a.out *** Error code 1
make: Fatal error: Command failed for target `all'

As you can see, I am am telling the linker to look in $ORACLE_HOME/sqllib/public as specified in the Pro*C documentation. What am I missing here?

-- 
Mark Anderson
Systems Administrator
Open Systems Center
Dept. G056 - Digital Libraries
703-883-6508
Received on Sat May 09 1998 - 22:33:16 CEST

Original text of this message