- #1
nds
- 2
- 0
fortran77 statement -- character assignment
Hi, I am porting an application written in fortran 77 to linux. The following code compiles well with IBM xlf compiler on AIX. However, when I use g77, it fails with the following error:foo.f:6:
+ var /ZFF/
^
Invalid declaration of or reference to symbol `zff' at (^) [initially seen at (^)]
I am not sure how ZFF is internally interpreted. I also tried using DATA var /ZFF/ (not that there are no singl quotes around ZFF.) but it doesn't work with g77
Can someone please help? Thank you.
Hi, I am porting an application written in fortran 77 to linux. The following code compiles well with IBM xlf compiler on AIX. However, when I use g77, it fails with the following error:foo.f:6:
+ var /ZFF/
^
Invalid declaration of or reference to symbol `zff' at (^) [initially seen at (^)]
I am not sure how ZFF is internally interpreted. I also tried using DATA var /ZFF/ (not that there are no singl quotes around ZFF.) but it doesn't work with g77
Can someone please help? Thank you.
Code:
program test
CHARACTER * 1
+ var /ZFF/
write(*,*) "printing var=", var
return
end
Last edited: