Re: Pro*C compile linker question

From: Youri Podchosov <ynp_at_panix.com>
Date: 7 Aug 1994 01:02:20 -0400
Message-ID: <321pss$efd_at_panix3.panix.com>


Raymond Chan (raychan_at_bftzh71.bnr.ca) wrote:
: We are running Oracle 7.0.16 with Pro*C 1.5 on HP9000/755. I have a
: question on compiling Pro*C using the demo make file provided by
: Oracle. As shown on the listing below, if I include the libraries
: "-lnlsrtl -lcv6 -lcore" twice, the linker works.
 

: Can someone explains? Sorry if it is a faq.

[ the rest of message deleted ]

If libA.a(mod1.o) refers libB.a(mod2.o) and in turn libB.a(mod3.o) refers libA.a(mod4.o) then the only way to make ld resolve these references is to specify libraries in the following manner:

        ld .... -lA -lB -lA ...
otherwise ld wouldn't find mod4.o as it does NOT do back-search of libraries mentioned in its command line.

Hope it helps.

-- 
+-----------------------------------------------------------------------------+
| Youri N. Podchosov (ynp)  ***  Davidsohn & Son, Inc. NYC  ***  718-234-4140 |
| Internet: ynp_at_panix.com          CIS:  72723,2202          AOL: ynp, yourip |
+-----------------------------------------------------------------------------+
Received on Sun Aug 07 1994 - 07:02:20 CEST

Original text of this message