Bogus "error: unterminated comment"

Tobias Schlüter tobias.schlueter@physik.uni-muenchen.de
Fri Feb 8 23:43:00 GMT 2008


Smith-Rowland, Edward M wrote:
> I'm getting this error like gfortran is looking for the end of a
> C-style comment. The files are fixed form and have a comment ending
> in "/*".
> 
> I tried to type my own reduced test case, unterm_comment.for, on
> Linux and was unable to reproduce the error.
> 
> It may be salient that RFLCT.FOR has DOS line endings while
> unterm_comment.for does not.

Adding to the previous answers, your problem can be solved with the "-x 
f95 -ffixed-form" command line option.

Cheers,
- Tobi



More information about the Fortran mailing list