Re: Problem with Pro*C compilation : sqlgls and sqlglm
Date: Wed, 12 May 1999 11:07:51 -0600
Message-ID: <7hcccg$i73$1_at_bgtnsc01.worldnet.att.net>
[Quoted] I always use the makefile that is provided with the sample Pro*C programs. [Quoted] Sometimes I just add my program modules to the end of the makefile... and [Quoted] other times I get industrious and create a makefile that includes the sample [Quoted] makefile. That is the only way to ensure that you get all of the paths and [Quoted] libraries included. The Oracle makefile is terribly complicated, and one [Quoted] should just use it instead of trying to create their own. That way, when [Quoted] you upgrade, you can just adopt the new sample, and you are off and running again.
[Quoted] I have seen the exact situation you describe, but do not remember exactly [Quoted] what it was. I would just make sure you are using the new makefile.
-- **************************************** Richard Armstrong State Of The Art Consulting, Inc. http://www.stateoart.com **************************************** <kev_grindley_at_my-dejanews.com> wrote in message news:7hc6b4$8nc$1_at_nnrp1.deja.com...Received on Wed May 12 1999 - 19:07:51 CEST
> 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.---