Xref: utzoo comp.unix.questions:12956 comp.unix.wizards:15628 Path: utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!purdue!gatech!ncsuvx!ece-csc!ncrcae!wescott From: wescott@ncrcae.Columbia.NCR.COM (Mike Wescott) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Re: Lost C Subroutines Message-ID: <4390@ncrcae.Columbia.NCR.COM> Date: 17 Apr 89 01:26:09 GMT References: <189@psgdc> Reply-To: wescott@ncrcae.Columbia.NCR.COM (Mike Wescott) Organization: NCR Corp., Engineering & Manufacturing - Columbia, SC Lines: 21 In article <189@psgdc> rg@psgdc (Dick Gill) writes: > I am having trouble installing the "slice" utility on my > NCR Tower 32/600. ... > cc -O -DUSG -lPW -o slice slice.o ... > Why are these subroutines not being found? Wrong order specified on the command line in the makefile. libPW.a (-lPW) ought to be specified _after_ slice.o. On the Tower (and many other Unix machines) libraries and object files are processed in the order found. When libPW.a is searched there are very few undefined symbols, only main() and exit() from crt0.o, but none from slice.o. This should do the trick: cc -o slice slice.o -LPW -- -Mike Wescott mike.wescott@ncrcae.Columbia.NCR.COM