* f90 compiler problem
@ 1996-11-21 5:00 Zhifeng Liu
1996-11-21 5:00 ` Steve Lionel
0 siblings, 1 reply; 2+ messages in thread
From: Zhifeng Liu @ 1996-11-21 5:00 UTC (permalink / raw)
Hi! I am trying to compile a program on an AlphaStation running
OSF 2. The Fortran 90 compiler gave me an error message as the
following:
=============================
f90: Error: main.f, line 278: There are too many dummy arguments for a FUNCTION or
SUBROUTINE subprogram. The current limit, which is set by the MAX_NUM_ARGS named
constant, is 256.
===============================
Is there a way to reset the value for MAX_NUM_ARGS for the f90 compiler?
Thanks for any help.
Zhifeng Liu
Dept. of Chemistry / Chinese University of Hong Kong
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: f90 compiler problem
1996-11-21 5:00 f90 compiler problem Zhifeng Liu
@ 1996-11-21 5:00 ` Steve Lionel
0 siblings, 0 replies; 2+ messages in thread
From: Steve Lionel @ 1996-11-21 5:00 UTC (permalink / raw)
In article <5713uj$4ut@hpg30a.csc.cuhk.edu.hk>, liu@liua.chem.cuhk.hk
(Zhifeng Liu) writes:
|>Hi! I am trying to compile a program on an AlphaStation running
|>OSF 2. The Fortran 90 compiler gave me an error message as the
|>following:
|>=============================
|>
|>f90: Error: main.f, line 278: There are too many dummy arguments for a FUNCTION or
|>SUBROUTINE subprogram. The current limit, which is set by the MAX_NUM_ARGS named
|>constant, is 256.
|>
|>===============================
|>
|>Is there a way to reset the value for MAX_NUM_ARGS for the f90 compiler?
|>Thanks for any help.
Sorry, no, this is internal to the compiler and is not changeable (other than
by editing the compiler source.) The message is confusing, I admit.
Few implementations allow more than 256 arguments - you should consider
modifying the code so that fewer arguments are passed. Perhaps you can use
MODULE variables or COMMON or a derived type.
--
Steve Lionel mailto:lionel@quark.zko.dec.com
Fortran Development 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 information on Digital Fortran, see http://www.digital.com/info/hpc/fortran/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-11-21 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-11-21 5:00 f90 compiler problem Zhifeng Liu
1996-11-21 5:00 ` Steve Lionel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox