Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!cmcl2!ccnysci!jeffrey From: jeffrey@ccnysci.UUCP (Jeffrey L Bromberger) Newsgroups: comp.unix.wizards Subject: Unix loader (ld) query Summary: how can _my_ routine supercede the one in the library? Keywords: multiply defined Message-ID: <1247@ccnysci.UUCP> Date: 9 Feb 89 23:03:17 GMT Reply-To: jeffrey@ccnysci.UUCP (Jeffrey L Bromberger) Organization: City College of New York Lines: 24 Hi. I'm using a pretty much Vanilla 4.3 BSD system, and I'm having problems with loading a file. Here's what happens: 1) My Fortran program calls a routine in a library 2) The library routine calls another library routine which I want to replace. 3) I write my version of this library routine, and get it into the .o format 4) I do a: % f77 myprog.f myroutine.o -lstuff 5) The message I get from the fortran compiler is: myprog.f: MAIN: _myroutine_: ld:/usr/local/lib/libstuff.a(myroutine.o): multiply defined Is there a simple way (in fact, I'd take _any_ way :-) to have my routine supercede the one supplied in the library? Am I asking for too much? I've got the feeling that there's an option to ld that would do what I want, but I can't make it out from the man page. Any help would be greatly appreciated. -- Jeffrey L. Bromberger System Operator---City College of New York---Science Computing Facility Anywhere!{cmcl2,philabs,phri}!ccnysci!jeffrey jeffrey@ccnysci.BITNET