From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 16c06c,dd479f019343c772,start X-Google-Attributes: gid16c06c,public X-Google-Thread: fee84,dd479f019343c772,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-08-05 02:18:46 PST Path: bga.com!news.sprintlink.net!hookup!yeshua.marcam.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!pipex!lyra.csx.cam.ac.uk!warwick!ral!rlsaxp.bnsc.rl.ac.uk!dlt From: dlt@rlsaxp.bnsc.rl.ac.uk (David L Terrett) Newsgroups: comp.unix.osf.osf1,ncsu.eos Subject: Re: Fortran Block Data statements not recognized in libraries Date: 5 Aug 1994 07:53:53 GMT Organization: Rutherford Appleton Laboratory Distribution: world Message-ID: <31sr6h$vvn@unixfe.rl.ac.uk> References: <31r6hf$4e6@sun4.bham.ac.uk> Reply-To: d.terrett@rl.ac.uk NNTP-Posting-Host: rlsaxp.bnsc.rl.ac.uk In article <31r6hf$4e6@sun4.bham.ac.uk>, sjt@xun8.sr.bham.ac.uk (James Tappin) writes: |> |>This is a fundamental problem in fortran (not just OSF), because a BLOCK |>DATA is never explicitly accessed it won't be picked up from the library |>unless there is a way of forcing a given member to be linked in. I'm |>afraid it's long enough since I did any serious fortran that I've never |>checked to see if there is a linker option to do that. -- On most systems (including OSF/1) you can get a block data subprogram to be loaded from a library by declaring the name of the subprogram as EXTERNAL in some subroutine that is being loaded. This behaviour isn't specified by the FORTRAN standard but I haven't yet encountered a system on which it doesn't work (apart from the field test version of OSF/1!). =============================================================== David Terrett Rutherford Appleton Laboratory Chilton, Dicot D.Terrett@rl.ac.uk Oxfordshire +44-235-446478 OX11 0QX United Kingdom