Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: GCC linking error with PRO*C
Looks like you are missing an Oracle library that libsqlnet.a is looking
for. Libsqlnet has references to functions (symbols) contained in other
Oracle libraries. To make sure that you are including all the necessary
libraries, check out the example library includes in the Pro*c demo
makefile:
$ORACLE_HOME/precomp/proc/demo
Don't worry that some libraries are included twice. This is a 'workaround' to the single-pass symbolic reference resolution commonly found in most Unix linkers. Just cut-and-paste the Oracle libraries into your make file or shell script.
FYI-This has nothing to do with using GCC.
Andrew Wales wrote:
>
> Hi;
>
> I get the following error when linking a PRO*C application....... Any
> ideas ?
>
> Andy
>
> /export/home/oracle7/lib/libsqlnet.a(ntt.o): In function `ntt2err':
> ntt.o(.text%ntt2err+0x3a4): undefined reference to `nldtotrc'
> ntt.o(.text%ntt2err+0x50c): undefined reference to `nldtotrc'
> ntt.o(.text%ntt2err+0x60c): undefined reference to `nldtotrc'
> ntt.o(.text%ntt2err+0x6d4): undefined reference to `nldtotrc'
> ntt.o(.text%ntt2err+0x730): undefined reference to `nldtotrc'
> /export/home/oracle7/lib/libsqlnet.a(ntt.o)(.text%ntt2err+0x888): more
> undefinew
> collect2: ld returned 1 exit status
> make: *** [sample1] Error 1
--
Jeffery Cann
Fairway Systems, Inc.
Senior Software Engineer
Received on Wed Apr 22 1998 - 11:55:36 CDT