From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,370e9e1f72a17418,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-09-10 11:28:22 PST Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!decwrl!pa.dec.com!nntpd.lkg.dec.com!jac.zko.dec.com!quark.enet.dec.com!LIONEL From: lionel@quark.enet.dec.com (Steve Lionel) Newsgroups: comp.sys.dec Subject: Re: help: DECfort77 compiler Date: 10 Sep 1994 16:43:22 GMT Organization: Digital Equipment Corporation - Nashua, NH Message-ID: <34snna$s2s@jac.zko.dec.com> References: <34qsag$s9@larch.cc.swarthmore.edu> Reply-To: lionel@quark.enet.dec.com NNTP-Posting-Host: quark.zko.dec.com In article <34qsag$s9@larch.cc.swarthmore.edu>, he@engin.swarthmore.edu (Ye He) writes: >I am a novice user of DEC. I was trying to compile a fortran program >that compiled and ran on Apollos (Domain OS) and DECfort77 gave me >the following error message: > >ld: >Undefined variable: >max_ >fort:Sever:Failed while trying to link. > >I am not sure what went wrong. > >The program declared a lot of "double precision" variables. If my DEC3000 >(running Alpha) uses 64 bits by default, then doubling may get me in >trouble. If that is the reason, how can I turn the double precision mode >off in DECfort77? I couldn't find it in the man page. It is a common misconception that because the AXP is a 64-bit processor that integers and floats automatically default to 64 bits. Not true. DOUBLE PRECISION is a 64-bit type the same as it is on most other systems. You don't need to turn anything off. I'm a bit confused by the error message - normally, if you used the MAX intrinsic function the compiler would automatically map it to the correct library routine (which isn't max_), but the fact that you got a reference to max_ shows that something else is wrong. Is there an EXTERNAL MAX somewhere in your program? How is the identifier MAX used? Feel free to send me mail with code samples and I'll try to help. Steve Lionel Mail: lionel@quark.enet.dec.com DEC Fortran Development WWW: http://www.digital.com/info/slionel.html Digital Equipment Corporation 110 Spit Brook Road, ZKO2-3/N30 Nashua, NH 03062-2698 "Free advice is worth every cent" For a summary of Digital's Internet services, send mail to info@digital.com