Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!ncar!cgdisis.cgd.ucar.edu!gary From: gary@cgdisis.cgd.ucar.edu (Gary Strand) Newsgroups: comp.lang.fortran Subject: Getting right modules from libraries Message-ID: <9767@ncar.ucar.edu> Date: 4 Jan 91 03:39:46 GMT Sender: news@ncar.ucar.edu Distribution: na Organization: Climate and Global Dynamics Division/NCAR, Boulder, CO Lines: 25 FC: Sun FORTRAN f77. I'm bashing my brains in trying to figure out how to force 'f77' to load in *my* object modules from *my* object library. What I'm doing is replacing several software-package routines, and putting them all into my own .a file. But, when I link everything together, 'f77' uses the system modules, not mine. I can force it to use my own modules via the '-g $(LIBDIR)/object.o' command, but I've got more than a few of my own modules, and this is sloppy. What's the point of personal libraries when they don't work? 'f77' doesn't even tell you when modules are duplicated, either. On our Cray, 'cft77' tells you when modules are duplicated, and which ones it's using (and from which library they are). The best I can do is have 'f77' pass on the '-M' option to the linker, but all that tells me is the libraries I'm accessing and the '.o' files used. Anybody with any ideas? The manual stinks. -- Gary Strand There is only one success -- to be able Internet: strandwg@ncar.ucar.edu to spend your life in your own way. Voicenet: (303) 497-1336 - Christopher Morley