Path: utzoo!attcan!uunet!husc6!mailrus!ames!oliveb!sun!thetone!swilson From: swilson%thetone@Sun.COM (Scott Wilson) Newsgroups: comp.sys.mac.programmer Subject: Re: LSC 3.0, argc & argv, linking Message-ID: <67189@sun.uucp> Date: 7 Sep 88 18:35:38 GMT References: <66791@sun.uucp> <2391@pixar.UUCP> Sender: news@sun.uucp Reply-To: swilson@sun.UUCP (Scott Wilson) Organization: Sun Microsystems, Mountain View Lines: 20 > I say it's unfair to expect ThinkC to do something Unix C doesn't: allow >the user to supercede an arbitrary function from a library. The Unix >linker links in a whole module whenever it defines a single undefined symbol. UNIX libraries (.a files) are composed of many separately compiled object files (.o files). As far as I know the linker extracts only the .o files needed to resolve references when linking. If you have your own strcpy, for example, the linker will not get strcpy.o from the library because the reference has already been satisified. Which versions of UNIX are you talking about, because the following has always worked for me without linker complaints: cc try.c strcpy.c -o try I'm only asking THINK C to be as smart as the UNIX linker, not any smarter. -- Scott Wilson arpa: swilson@sun.com Sun Microsystems uucp: ...!sun!swilson Mt. View, CA