Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!uxc!iuvax!bobmon From: bobmon@iuvax.cs.indiana.edu (RAMontante) Newsgroups: comp.lang.c Subject: Re: Question about linking files Message-ID: <18980@iuvax.cs.indiana.edu> Date: 28 Mar 89 15:30:42 GMT Reply-To: bobmon@iuvax.cs.indiana.edu (RAMontante) Distribution: na Organization: malkaryotic Lines: 23 Tim_CDC_Roberts@cup.portal.com <16315@cup.portal.com> : [ condensed ] - -If I read the original correctly, he is saying that given: - - MY.LIB <== A.OBJ entry points A1 A2 A3 externals C1 - B.OBJ entry points B1 B2 B3 - C.OBJ entry points C1 C2 C3 - - main () { a1(); a3(); } - - [ ... ] - -Now, if A, B, and C are all modules on a single OBJ, and that OBJ is fed -to the linker, then one would expect all three to appear on the executable. I didn't mean all entries in a LIBrary, I meant all modules in the same original OBJ. In fact the simplest "fix" is to make a library out of it. The question was: is such behavior (linking everything in the OBJ) necessary for some reason, or is it more likely to be a hack for speed/simplicity of compilation (or a bug)? Sorry I wasn't clear the first time.