From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,5f45ab178f39961a X-Google-Attributes: gid1164f8,public From: lionel@quark.zko.dec.com (Steve Lionel) Subject: Re: f90 compiler problem Date: 1996/11/21 Message-ID: <57204d$o0v$1@nntpd.lkg.dec.com>#1/1 X-Deja-AN: 197881694 distribution: world sender: lionel@quark.enet.dec.com (Steve Lionel) references: <5713uj$4ut@hpg30a.csc.cuhk.edu.hk> organization: Digital Equipment Corporation, Nashua NH reply-to: lionel@quark.zko.dec.com (Steve Lionel) newsgroups: comp.sys.dec 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/