From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,f25184df11c99b27,start X-Google-Attributes: gidfa528,public X-Google-Thread: fc89c,f25184df11c99b27,start X-Google-Attributes: gidfc89c,public X-Google-ArrivalTime: 2001-03-26 03:04:04 PST Path: supernews.google.com!sn-xit-03!supernews.com!freenix!fr.clara.net!heighliner.fr.clara.net!diablo.netcom.net.uk!netcom.net.uk!cw-insnet-peer-00!feed.news.insnet.cw.net!news!not-for-mail From: "Thomas H. Williams" Newsgroups: comp.unix.programmer,comp.unix.tru64 Subject: Hiding symbols in shared libraries on Digital UNIX Date: Mon, 26 Mar 2001 12:12:47 +0100 Organization: MINX Message-ID: <99n7lo$ign$1@news.minx.net.uk> Reply-To: "Thomas H. Williams" NNTP-Posting-Host: ppp-2-100.cvx5.telinco.net X-Trace: news.minx.net.uk 985604600 18967 212.1.153.100 (26 Mar 2001 11:03:20 GMT) X-Complaints-To: usenet@news.minx.net.uk NNTP-Posting-Date: Mon, 26 Mar 2001 11:03:20 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Xref: supernews.google.com comp.unix.programmer:9960 comp.unix.tru64:1949 Dear all, I need to ensure that the functions in a shared libraries are accessed only through the published interface. This is causing me problems on Digital UNIX where according to everything I've read I need to use the -hidden and -exported_symbol linker flags. The command line I am using to link (via the C++ compiler is) cxx -s -shared -Wl,-hidden -Wl,-exported_symbol, -Wl,'goc*' -o mylib.so mylib1.o mylib2.o I believe this should hide all the symbols except those with a 'goc' prefix, but it doesn't seem to so. Can anyone tell me what I am doing wrong? I am using Compaq C++ V6.2-024 for DIGITAL UNIX V4.0E (Rev. 1091) and ld 3.11. Thanks in advance, Tom Williams thwill@connectfree.co.uk