Error: must operate on two scalar (not array) subexpressions

Andrew Stone astone@brightlane.com
Mon May 13 11:31:00 GMT 2002


Hello all,

First off, I hope I'm in the right place.  I'm working on a project
to put a DOS based system on the web. This system was written in
FORTRAN-77 (not by me) and compiled with Salford's FTN77. I'm trying
to compile this source code using g77 and get the following error:

CALC401K.FOR:194:
         IF(UNTYPE.EQ.'XX  ') GOTO 171
                  1   2
Equality operator at (1) must operate on two scalar (not array)
subexpressions, two function invocations returning arithmetic or character
scalars, or a combination of both -- but the subexpression at (2) is an
array

UNTYPE is Declared as:

COMMON/UNTYPE/UNTYPE


Any help would be greatly appreciated, I've tried different compiler
options and have not had any luck.

thanks in advance,
andy


Andrew Stone
XML Architect/Developer
BrightLane, a TeamStaff Inc. Company
Office: 678-385-2823

Andrew Stone
XML Architect/Developer
BrightLane, a TeamStaff Inc. Company
Office: 678-385-2823



More information about the Gcc-help mailing list