From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 16c06c,dd479f019343c772 X-Google-Attributes: gid16c06c,public X-Google-Thread: fee84,dd479f019343c772 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-08-05 07:52:00 PST Path: bga.com!news.sprintlink.net!uunet!pipex!warwick!bham!xun8!sjt From: sjt@xun8.sr.bham.ac.uk (James Tappin) Newsgroups: comp.unix.osf.osf1,ncsu.eos Subject: Re: Fortran Block Data statements not recognized in libraries Followup-To: comp.unix.osf.osf1,ncsu.eos Date: 4 Aug 1994 16:55:11 GMT Organization: The University of Birmingham, UK. Distribution: world Message-ID: <31r6hf$4e6@sun4.bham.ac.uk> References: NNTP-Posting-Host: xun8.sr.bham.ac.uk X-Newsreader: TIN [version 1.2 PL2] Chuck Henkel (csh@eos.ncsu.edu) wrote: : Context: DEC AXP 3000 model 300 : OSF/1 v 2.0 : DEC Fortran v3.4 : Problem: When I bundle my block data routines into a library, the : initializations are not performed. Outside of a library, : things appear to work, but I'm not crazy about the prospect : of having to restructure my makefiles. : The release notes contain the following statement: : o The following changes were made to the decfort compiler : since DFAO V3.3: : [...] : - Make named block data in library work. : What am I missing? Is it generally advisable to avoid using : libraries and just string out all the .o's on the link line? [illustrations deleted] : Chuck Henkel : NCSU Nuclear Engineering 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. -- James Tappin, School of Physics & Space Research University of Birmingham sjt@xun8.sr.bham.ac.uk "If all else fails--read the instructions!" O__ -- \/`