Bogus "error: unterminated comment"
FX
fxcoudert@gmail.com
Fri Feb 8 17:56:00 GMT 2008
> It may be salient that RFLCT.FOR has DOS line endings while unterm_comment.for does not.
No, it's not that. The problem is that RFLCT.FOR has a uppercase .FOR
extension, which indicates to gfortran that C-style preprocessing is
required, while it is not performed for a file having lowercase .for
extension. C-style preprocessing, being C-style, doesn't deal well
with /* and */. Some compilers deal with it (intel, sun), some don't
(g95, gfortran).
--
FX Coudert
http://www.homepages.ucl.ac.uk/~uccafco/
More information about the Fortran
mailing list