Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!decwrl!hayes.ims.alaska.edu!floyd From: floyd@ims.alaska.edu (Floyd Davidson) Newsgroups: comp.sys.3b1 Subject: Re: Compiling problems Keywords: 3b1 compile cc ld Message-ID: <1991May18.074525.5234@ims.alaska.edu> Date: 18 May 91 07:45:25 GMT References: <102@morwyn.UUCP> <1991May17.033818.13599@ims.alaska.edu> <1991May17.224422.15038@blilly.UUCP> Organization: University of Alaska Institute of Marine Science Lines: 29 In article <1991May17.224422.15038@blilly.UUCP> bruce@balilly (Bruce Lilly) writes: >In article <1991May17.033818.13599@ims.alaska.edu> floyd@ims.alaska.edu (Floyd Davidson) writes: >>In article <102@morwyn.UUCP> forrie@morwyn.UUCP (Forrie Aldrich) writes: >>>I had posted a message a short time ago about having problems with >>>my compiler, etc. >>[...] >>>What's happening is this: the loader isn't finding common symbols from >>>the c library such as '_doprnt' 'setvbuf' etc... >> >>If you are using the shared lib, they aren't there. > >To use the shared library with such a program, modify the makefile to use >doprnt.o, setvbuf.o, etc. on the ld line, then add > >doprnt.o setvbuf.o: /lib/libc.a > ar x $? $@ > >to the makefile, and you should be all set. > I put them into a local library and use the -l option. To me it seems a little cleaner... Floyd -- Floyd L. Davidson | Alascom, Inc. pays me, |UA Fairbanks Institute of Marine floyd@ims.alaska.edu| but not for opinions. |Science suffers me as a guest.