Unix loader (ld) query

Jeffrey L Bromberger jeffrey at ccnysci.UUCP
Fri Feb 10 09:03:17 AEST 1989


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 at ccnysci.BITNET



More information about the Comp.unix.wizards mailing list