Re: Using Pro*C ?

From: Scott Urman <surman_at_oracle.com>
Date: 3 Mar 1995 19:29:49 GMT
Message-ID: <3j7qnd$9ml_at_dcsun4.us.oracle.com>


You need to use the Oracle supplied makefile. Check out $ORACLE_HOME/proc/demo/proc.mk.

In article <3j2ne2$dbk_at_kocrsv08.delcoelect.com>, awdorrin_at_ictest.delcoelect.com (Albert W. Dorrington) writes:
|>
|> 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 Fri Mar 03 1995 - 20:29:49 CET

Original text of this message