From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,a9d98024aa8b2cc6 X-Google-Attributes: gidfee84,public From: "Dave Maclaurin" Subject: Re: C compile-runtime problem Date: 1999/08/11 Message-ID: <934319388.927548@parmaite.otago.ac.nz>#1/1 X-Deja-AN: 511195845 Cache-Post-Path: parmaite.otago.ac.nz!unknown@redshift.otago.ac.nz References: <933914694.747913@parmaite.otago.ac.nz> <37AB5201.B2A7BC92@zk3.dec.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Organization: University of Otago X-MSMail-Priority: Normal X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) Newsgroups: comp.unix.osf.osf1 Thanks very much - that fixed the problem !! Cheers Dave. Joe Mario wrote in message news:37AB5201.B2A7BC92@zk3.dec.com... > Dave Maclaurin wrote: > > > Hi, > > I'm trying to compile and run one of the examples from the Netscape C SDK > > LDAP installation under Digital Unix 4. > > I'm relatively new to unix and don't know why the code compiles, links then > > dies at run time. I am obviously not linking > > in all the required shared libraries - how can I work backwards from a > > runtime error for an unresolved symbol > > to a library that needs to be loaded at runtime. > > ... > > Then Link it > > > > >ld -taso -v -call_shared asearch.o lib/libldapssl30.so /usr/shlib/libc.so > > Dave: > Please do your link using the cc driver. The link line above is missing > crt0.o and maybe more. > > cc -taso asearch.o -Llib -lldapss130 > > Then run your ./a.out. > > Joe Mario >