Siddy Sid
Siddy Sid

Reputation: 55

Invalid declaration of or reference error in FORTRAN

Hello I am new to FORTRAN programming and now going through INTEGERS.

I have the following code Snippet

 CHARACTER*14   METFIL

 +                 / 'WKPLT.MET'  /
  CHARACTER*127  IBC
  CHARACTER*2    ICOD(6)
  INTEGER  *2    JIS (6)
 +                 / Z2533, Z2524, Z256B, Z4538, Z332B, Z3F5E  /

When I am compiling using g77 I am getting the error "Invalid declaration of or reference to symbol `z2533' at (^) [initially seen at (^)]" . Can anyone help me regarding this.

Upvotes: 0

Views: 578

Answers (1)

Sudipto
Sudipto

Reputation: 390

Hey I tried to compile your code using g77 . I changed the following

  INTEGER  *2    JIS (6)
 +                 / Z'2533', Z'2524', Z'256B', Z'4538', Z'332B', Z'3F5E'  /

This was as per agentp's comment above . Hope this helps

Upvotes: 1

Related Questions