Re: Fortran Error Problem



glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx> wrote:

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.

I don't think I believe you. Well, more like I do believe you, but I
think your description is potentially misleading. It can be read to
imply that failing to assign a value can cause this error. Let us be
clear that all forms of this error come from failing to dimension the
array - not from any other cause. Matters like how the array is used
change the symptoms of the error, but are not the actual cause.

--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.



Relevant Pages

  • Re: MultiThreading an ActiveX DLL call...
    ... > COM method in the same thread procedure? ... > Failing to do so will incur thread marshaling overhead! ... > So the STA threading rules are simple; ... It's slow when passing the array to the VB6 AX Function, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Fortran Error Problem
    ... imply that failing to assign a value can cause this error. ... clear that all forms of this error come from failing to dimension the ... Matters like how the array is used ... But assigning to an undimensioned array is usually a ...
    (comp.lang.fortran)
  • Re: Passing arrays to external functions in oorexx
    ... How do I get the actual value of the array elements passed to the ... As it exists today, the external function interface is strings only, so the array gets coerced to it's string value on the call. ... The next major release of the ooRexx open source version will have an extended function API that allows fuller access to objects rather than being limited to just strings. ...
    (comp.lang.rexx)
  • Re: references and objects
    ... >I'm failing to find something in the manuals (or at least the bit I'm ... >I want to return an array and 2 scalars. ...
    (perl.beginners)
  • Re: ADSI script for IIS 5.0 can not run in IIS 6.0
    ... Problem fixed by changing the array for ServerBindings from dynamic array to ... > It seems that something happens with the ReDim. ... >> You have given insufficient information on what exactly is failing. ...
    (microsoft.public.inetserver.iis)