From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,dd479f019343c772 X-Google-Attributes: gidfee84,public X-Google-Thread: 16c06c,dd479f019343c772 X-Google-Attributes: gid16c06c,public X-Google-ArrivalTime: 1994-08-05 08:17:18 PST Path: bga.com!news.sprintlink.net!sundog.tiac.net!usenet.elf.com!news2.near.net!MathWorks.Com!yeshua.marcam.com!usc!elroy.jpl.nasa.gov!lll-winken.llnl.gov!decwrl!pa.dec.com!jac.zko.dec.com!gemmax.zko.dec.com!dmurphy From: dmurphy@gemmax.zko.dec.com (Dennis Murphy) Newsgroups: comp.unix.osf.osf1,ncsu.eos Subject: Re: Fortran Block Data statements not recognized in libraries Date: 5 Aug 1994 14:09:31 GMT Organization: Digital Equipment Corporation Distribution: world Message-ID: <31th6r$51l@jac.zko.dec.com> References: Reply-To: dmurphy@tle.enet.dec.com NNTP-Posting-Host: gemmax.zko.dec.com Chuck, if you modify your program as follows: gemosf.zko.dec.com> more main.f common /waa/ foo external bd real foo write (*,*) 'before sub, foo=',foo call sub write (*,*) 'after sub, foo=',foo end gemosf.zko.dec.com> gemosf.zko.dec.com> f77 -c main.f gemosf.zko.dec.com> f77 -o waa main.o waa.a gemosf.zko.dec.com> waa before sub, foo= 1.000000 after sub, foo= 2.000000 gemosf.zko.dec.com> everything works correctly. The problem you encounter is that the linker doesnt pull the common waa out of the block dat bd contribution. I'll let the Fortran Gurus explain why. Hope this helps