Nonnegative Width Required
Symptom
The following error is reported during compilation:
star2doc.f:358.39:
READ(CTOKEN(1:NCHAR),'(I)') IDLIST
1
Error: Nonnegative width required in format string at (1)
make: *** [spider_linux_gfort.a(star2doc.o)] Error 1
Cause
The standard Fortran requires that a nonnegative bit width be specified for characters. If the bit width is not specified, an error is reported during GFortran compilation. No such error is reported in Intel Fortran.
For details, see:
https://pages.mtu.edu/~shene/COURSES/cs201/NOTES/chap05/format.html
Procedure
Change READ(CTOKEN(1:NCHAR),'(I)') IDLIST to READ(CTOKEN(1:NCHAR),'(I5)') IDLIST.
Parent topic: Common Problems (Intel Extension)