From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,1afe4e2ef8d5145 X-Google-Attributes: gidfee84,public From: "Albert Chin" Subject: Re: Digital Unix 4 - runtime loader unable to find a .so library Date: 1999/07/12 Message-ID: #1/1 X-Deja-AN: 500015867 Sender: Albert Chin-A-Young References: <7mc2m6$4roao$1@titan.xtra.co.nz> X-Trace: news.corecomm.net 931763184 208.150.51.102 (Mon, 12 Jul 1999 02:06:24 CDT) User-Agent: tin/pre-1.4-19990624 ("Dawnrazor") (UNIX) (IRIX/6.5 (IP22)) NNTP-Posting-Date: Mon, 12 Jul 1999 02:06:24 CDT Newsgroups: comp.unix.osf.osf1 Dave and Sonya Maclaurin wrote: > I wonder if any Unix prgrammers can help me - I have written a small c > program that makes calls to Netscape's Directory SDK for C API - basically > I'm doing some simple LDAP stuff. Netscape provide a ldap.h file and a > libldapssl30.so file to link to. Now I can compile my c program as a shared > library and can link with no great problems - > Once I have my shared library ( that itself contains calls to Netscapes > library ) I need to link this into a Forte executable - I can do the link OK > but at runtime I get an error saying that my shared library has unresolved > references - How oh How do I tell Unix loader where the Netscape shared > library is ? Please post the complete error message. You need to link with "-Wl,-rpath," for any shared library you have on the system that is not in the default location. > Cheers Dave. -- albert chin (china (at) thewrittenword (dot) com)