Path: utzoo!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!pacbell.com!ucsd!hub.ucsb.edu!appmag!pa From: pa@appmag.com (Pierre Asselin) Newsgroups: comp.lang.fortran Subject: Re: What's the right way to get a block data from a library? Keywords: fortran, block data, library search Message-ID: <1991Mar18.182822.11470@appmag.com> Date: 18 Mar 91 18:28:22 GMT References: Distribution: comp Organization: R&D, Applied Magnetics, Goleta, CA Lines: 17 ANSI Fortran 77 declines to specify "the mechanism by which programs are transformed for use on a data processing system." The interaction between the compiler and loader is pretty much a wildcard. The block-data-in-a-library snag was discussed in this group before. As I remember it, -most implementations will let you do it with some scheme or other; -no single method works on all implementations. If I need portably initialized data, I keep the block data in *source* form and INCLUDE it exactly once, outside of all program units. INCLUDE is not ANSI but, as discussed earlier, it is essentially portable. --Pierre Asselin, R&D, Applied Magnetics Corp. I speak for me. 3003jalp@ucsbuxa.ucsb.edu --appmag.com doesn't work yet.