Re: Problem with Pro*C compilation : sqlgls and sqlglm
Date: Tue, 18 May 1999 12:19:56 GMT
Message-ID: <7hrltc$50v$1_at_nnrp1.deja.com>
Kettil
Thanks for that : yes, I started from scratch and pre-compiled the .pc
file to .c. There were several things wrong (SQLCA had to become sqlca
for example !) but we were also missing a library identified by the
compiler switch -lxa. This was solved by putting LLIBXA= into the top of
the proc.mk file !
Result : I now have a working executrable ! Thanks for the advice.
Kevin
In article <QXR_2.56$kf7.563_at_news1.online.no>,
"Ketill Fenne" <ketill.fenne_at_isi.no> wrote:
> Have you recompiled the original .pc file to .c?
>
> Pro*C depends on the version of SQL*NET. That means that a .pc file
> precompiled with ProC v2 to a c-file won't work with NET8.
> You have to install ProC v8 and precompile to C, and then run the
> C-compiler.
>
> Ketill
>
> <kev_grindley_at_my-dejanews.com> wrote in message
> news:7hc6b4$8nc$1_at_nnrp1.deja.com...
> > Hello,
> >
> > I am trying to recompile a Pro*C application under Oracle 8
> > which was originally developed under DYNIX/ptx and Oracle 7.3 The
code
> > uses the sqlglm() function call to retrieve the error message text
when
> > an embedded SQL statement fails. This is the technique recommended
by
> > the manual. The compilation fails with the following messages :-
> >
> > $ cc -o cgrp cgrp.c
> > Undefined first referenced
> > symbol in file
> > sqlgls cgrp.o
> > sqlglm cgrp.o
> > sqlcxt cgrp.o
> > ld: cgrp: fatal error: Symbol referencing errors. No output written
to
> > cgrp
> >
> > Folks here beleive that something has been missed out during the
> > installation of Oracle 8...perhaps a library, or a link to a library
> > path, may be an environment variable.
> >
> > However, I can't find anything in the documentation or on Oracles
> > technet that may be of help. Has anyone come across this error
before ?
> > Any advice would be gratefully received.
> >
> > Thanks,
> > Kevin Grindley
> >
> >
> >
> > --== Sent via Deja.com http://www.deja.com/ ==--
> > ---Share what you know. Learn what you don't.---
>
>
--== Sent via Deja.com http://www.deja.com/ ==-- ---Share what you know. Learn what you don't.--- Received on Tue May 18 1999 - 14:19:56 CEST