Re: Fortran Error Problem
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx>
- Date: Mon, 27 Nov 2006 23:21:11 -0800
highegg wrote:
a DIMENSION declaration is missing for X. The compiler assumes that X
is an external function and complains at link stage that it is missing.
I have seen this happen in a subroutine, where an array is used but
never assigned a value, in which case Fortran considers it a function
as an actual argument.
In this case, it is referenced but never assigned in the main program.
If there was an assignment, it would have been a compilation error.
Here there is no compilation error, but X is never initialized.
-- glen
.
- Follow-Ups:
- Re: Fortran Error Problem
- From: Richard Maine
- Re: Fortran Error Problem
- References:
- Fortran Error Problem
- From: engrzia76
- Re: Fortran Error Problem
- From: engrzia76
- Re: Fortran Error Problem
- From: highegg
- Fortran Error Problem
- Prev by Date: Re: Fortran Error Problem
- Next by Date: Re: Fortran Error Problem
- Previous by thread: Re: Fortran Error Problem
- Next by thread: Re: Fortran Error Problem
- Index(es):
Relevant Pages
|