Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!helios!tamuts!dlb5404 From: dlb5404@tamuts.tamu.edu (Daryl Biberdorf) Newsgroups: comp.sys.3b1 Subject: How to use the shareable libraries Message-ID: <13733@helios.TAMU.EDU> Date: 26 Mar 91 00:22:05 GMT Sender: usenet@helios.TAMU.EDU Organization: Texas A&M University Lines: 21 Due to a couple of private requests for me to forward information on the shareable libraries, here is the answer according to David Thomas. Thanks David! --------------------------------------------------------------------------- That's a FAQ, and it's also expertly hidden (yes, WELL hidden :-) in the manuals. You do it like this: cc -c foo.c ld -o foo /lib/crt0s.o /lib/shlib.ifile foo.o Sure! Just what you would have guessed, right :-) Took me a long time to figure that one out. I recommend that you grab "shcc" from the osu archives. It's a very smart adaptation of cc(1), which supports absolutely all features of cc, plus it uses the shared library as much as is ever possible. With it, you just go: shcc foo.c and you're done!