Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Problem with Pro*C on Solaris 8 and Oracle 8.1.6 using gcc

Problem with Pro*C on Solaris 8 and Oracle 8.1.6 using gcc

From: Graham Thornton <graham.thornton_at_ln.ssw.abbott.com>
Date: Mon, 27 Aug 2001 11:05:24 -0500
Message-ID: <3B8A6FC4.24046FCC@ln.ssw.abbott.com>

Got a problem with Pro*C ......

I am using Solaris 8 - 64-bit, Oracle 8.1.6.1 and the gcc compiler. I am trying to compile the sample10.pc program that Oracle ships with the database:

Here's what happens:

-----8<------------

> proc sample10.pc

Pro*C/C++: Release 8.1.6.0.0 - Production on Mon Aug 27 10:59:28 2001

(c) Copyright 1999 Oracle Corporation. All rights reserved.

System default option values taken from: /oracle/v816/precomp/admin/pcscfg.cfg

> /usr/local/bin/gcc sample10.c

sample10.c: In function `main':
sample10.c:926: warning: return type of `main' is not `int'
sample10.c: In function `process_select_list':
sample10.c:1573: warning: passing arg 1 of `sqlprc' from incompatible
pointer te
Undefined                       first referenced
 symbol                             in file
sqlald                              /var/tmp/ccwwaqHf1.o
sqlnul                              /var/tmp/ccwwaqHf1.o
sqlclu                              /var/tmp/ccwwaqHf1.o
sqlcxt                              /var/tmp/ccwwaqHf1.o
sqlprc                              /var/tmp/ccwwaqHf1.o
ld: fatal: Symbol referencing errors. No output written to a.out
>

Anyone got a quick solution for this one??

Thanks in advance

Graham Received on Mon Aug 27 2001 - 11:05:24 CDT

Original text of this message

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