Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* help: DECfort77 compiler
@ 1994-09-09 23:49 Ye He
  1994-09-10 16:43 ` Steve Lionel
  0 siblings, 1 reply; 2+ messages in thread
From: Ye He @ 1994-09-09 23:49 UTC (permalink / raw)


Hello,

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.  

Anyone gurus out there who can give me a pointer?  Please reply to my
email address.  Thanks very much.

--
Ye
he@engin.swarthmore.edu


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: help: DECfort77 compiler
  1994-09-09 23:49 help: DECfort77 compiler Ye He
@ 1994-09-10 16:43 ` Steve Lionel
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Lionel @ 1994-09-10 16:43 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-09-10 16:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-09-09 23:49 help: DECfort77 compiler Ye He
1994-09-10 16:43 ` Steve Lionel

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