Re: Linking Pro*C programs

From: Tommy Wareing <p0070621_at_brookes.ac.uk>
Date: 1995/08/18
Message-ID: <411hrk$lqo_at_cs3.brookes.ac.uk>#1/1


In article <40t1ug$im_at_horos.kbfi.ee>, Andres Kaasik says...
>
>I have a question:
>
>When I linked sample1.pc in ORACLE_HOME/proc/demo there were some libs
>(eg: -lsqlnet -lora -lsqlnet -lora) used twice. Does anyone know the
>reason and why it fails when I remove duplicated libs.
>
>Thanks in advance.
>

I asked the Oracle Helpdesk that one.
Apparently libsqlnet.a needs some routines in libora.a. Those routines in libora.a need some different routines in libsqlnet.a Those routine in libsqlnet.a need more routines from libora.a

Libraries are searched when the name is encountered on the command line, and only searched for the routines needed at that point in the linking.

Stupid isn't it?

-- 
 _________________________   __________________________________________
/  Tommy Wareing          \ /  I've been looking for an original sin,  \
|  p0070621_at_brookes.ac.uk  X   One with a twist and a bit of a spin    |
\  0865-483389            / \     -- Pandora's Box, Jim Steinman       /
 ~~~~~~~~~~~~~~~~~~~~~~~~~   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Received on Fri Aug 18 1995 - 00:00:00 CEST

Original text of this message