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 -> Re: Problem with Pro*C on Solaris 8 and Oracle 8.1.6 using gcc

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

From: Zoran Marjanski <zoranm_at_sympatico.ca>
Date: Wed, 05 Sep 2001 03:58:30 GMT
Message-ID: <Gphl7.9307$IP6.735712@newsread2.prod.itd.earthlink.net>


Sounds like you're not linking in the Oracle libraries. You need to add some options on the gcc command line to specify Oracle libraries and Oracle library path. Sorry I can't be specific about which libraries are required. We have makefiles that link in a whole bunch of them.

Didn't the sample pro*c pgms come with sample makefiles?

Zoran.

"Graham Thornton" <graham.thornton_at_ln.ssw.abbott.com> wrote in message news:3B8A6FC4.24046FCC_at_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 Tue Sep 04 2001 - 22:58:30 CDT

Original text of this message

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