From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,e277993d18be2b84 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-04-16 12:24:47 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!171.64.14.106!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!news.cpqcorp.net!not-for-mail From: "Jeff Donsbach" Newsgroups: comp.unix.tru64 References: <3AD12B02.CFD2333E@canb.auug.org.au> Subject: Re: Linker Problems X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Message-ID: Date: Mon, 16 Apr 2001 15:21:58 -0400 NNTP-Posting-Host: 16.129.16.168 X-Complaints-To: abuse@Compaq.com X-Trace: news.cpqcorp.net 987448977 16.129.16.168 (Mon, 16 Apr 2001 12:22:57 PDT) NNTP-Posting-Date: Mon, 16 Apr 2001 12:22:57 PDT Organization: Compaq Computer Corporation Xref: supernews.google.com comp.unix.tru64:2137 I think you want to also include the "-all" flag before your archive. I.e. ld -shared -o fred.so fred.o stuff.o -hidden -all extras.a -none -non_hidden You will probably also want to include at least "-lc" on the end of that to avoid any "Unresolved Symbol" warnings. I usually use "cc" or "cxx" as the driver to "ld" to do this which will include some libraries implicitly (-lc, -lcxx, -lexc for instance). Jeff Donsbach Partners Engineering Compaq Computer Corp Michael Thomson wrote in message news:3AD12B02.CFD2333E@canb.auug.org.au... > Hi, > > I'm new to the Tru64 OS and am trying to port some software to the > platform. > > The problem I am running into is the linker does not seem to be doing > what "I think i'm trying to tell it" > > I have a archive library that I want to include in shared object but at > the end of the so's creation I do not want to see any of the archives > entry points externally available. > > I have been trying to use the -hidden and -none flags on the link and I > cannot seem to get rid of the archives entry points. > > Anyone got any idea of what I'm doing wrong. > > ld -shared -o fred.so fred.o stuff.o -hidden extras.a > > If this is the wrong approach, what is the correct approach, Is there an > option to specify a list of entry points are that to be externalized by > the .so? > > Thanks, > Michael.