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: Joe Mario Subject: Re: C compile-runtime problem Date: 1999/08/06 Message-ID: <37AB5201.B2A7BC92@zk3.dec.com>#1/1 X-Deja-AN: 509730254 Content-Transfer-Encoding: 7bit References: <933914694.747913@parmaite.otago.ac.nz> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: UBPG Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 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