Re: Pro*C compile linker question

From: Marcus Collins <ccmr_at_cplan109.ion.chevron.com>
Date: 9 Aug 94 15:19:18 GMT
Message-ID: <1994Aug9.151918.21424_at_london.chevron.com>


In article <1994Aug5.205415.21562_at_bcarh54a.bnr.ca>, raychan_at_bftzh71.bnr.ca (Raymond Chan) says:
>
>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 unix linker (ld) is a single pass linker and as such if a module contains an unresolved external reference that module must appear after the caller in the -l sequences. This problem would not happen on the IBM as iewl is a two pass linker. The version of proc.mk in the 7.0.16 version we are using has the duplicate entries as required. Hope this helps - read the details on -l in the cc or ld man pages for a better explanation.

--
 Marcus Collins                        Internet: eccmr_at_aberdeen.chevron.com
 Database Analyst.                   MS-Mail: CCMR
 Chevron (UK) Ltd.                    Phone: +44 224 242690. CTN 677-2690.
 Ninian House, Crawpeel Road, Altens, Aberdeen AB1 4LG.

         _/        _/   _/_/_/_/    _/_/_/_/
        _/_/ _/_/   _/             _/
       _/ _/_/_/   _/            _/
      _/  _/ _/   _/            _/
     _/     _/   _/            _/
    _/     _/   _/_/_/_/  _/_/_/_/
Received on Tue Aug 09 1994 - 17:19:18 CEST

Original text of this message