Using Pro*C ?

From: Albert W. Dorrington <awdorrin_at_ictest.delcoelect.com>
Date: 1 Mar 1995 21:02:58 GMT
Message-ID: <3j2ne2$dbk_at_kocrsv08.delcoelect.com>


Hi,

        I'm trying to write a C-program to query an Oracle database. I'm trying to follow the sample program 1: Simple Query program found on pages 3-2, 3-3 of the 'Pro*C Supplement to the Oracle Precompiler's Guide (V1.3)'

        However, I cannot compile the program. I can get 'pcc' to precompile the program without errors, but when I use 'cc' to compile the program I get a list of errors.

cc sample.c
ld: Undefined symbol

_sqlexe
_sqltfl
_sqlopn
_sqlrol
_sqlsca
_sqlosq
_sqlscc
_sqlcom
_sqlad2
_sqlsch
_sqlbs2
_sqllo2
_sqlfch

        Now i've tried linking all of the .a library files I can find (maybe there is another hiding out there in another directory) but I can't seem to find it.

        My operating system is SunOS 4.1.3 and we are using V6 of Oracle.

        I'm sure my error is probably simple, but these manuals really are not all that clear on how i'm suppose to compile and link anything.

        Any help would really be appreciated.

-Al

-- 
Al Dorrington
awdorrin_at_ictest.delcoelect.com
Delco Electronics - IC CIM
Kokomo, Indiana, USA
Received on Wed Mar 01 1995 - 22:02:58 CET

Original text of this message