I am compiling a Fortran code using F77 (I tried with gfortran as well); however, I got some compiling errors as below:
Code:
c ** write 'ass.ini' file **
open(17,file=inifile,status='unknown')
write(17,1001) ext1
write(17,1002) ext2
close(17)
1001 format('\'.',a1,'\' ext1')
1002 format('\'.',a1,'\' ext2')
Compiling errors:
1001 format('\'.',a1,'\' ext1')
1
Error: Unexpected element ‘.’ in format string at (1)
1002 format('\'.',a1,'\' ext2')
1
Error: Unexpected element ‘.’ in format string at (1)
write(17,1001) ext1
1
Error: FORMAT label 1001 at (1) not defined
write(17,1002) ext2
1
Error: FORMAT label 1002 at (1) not defined
I tried with advance="no" but could not fix. I am new to Fortran, I would like to get some suggestions to fix this error please. Many thanks!