Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: dlt@rlsaxp.bnsc.rl.ac.uk (David L Terrett)
Subject: Re: Fortran Block Data statements not recognized in libraries
Date: 5 Aug 1994 07:53:53 GMT	[thread overview]
Message-ID: <31sr6h$vvn@unixfe.rl.ac.uk> (raw)
In-Reply-To: 31r6hf$4e6@sun4.bham.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


  reply	other threads:[~1994-08-05  7:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-08-04 15:12 Fortran Block Data statements not recognized in libraries Chuck Henkel
1994-08-04 16:55 ` James Tappin
1994-08-05  7:53   ` David L Terrett [this message]
1994-08-05 14:09 ` Dennis Murphy
1994-08-08 18:00   ` Dave Eklund
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox