Am trying to compile a Fortran code with the Cray compiler. I have a standard preprocessing ifdef block in the code:
#ifdef DEBUG
! print extra info
#endif
Cray doesn't like this at all. It tells me
#ifdef DEBUG
^
ftn-100 crayftn: ERROR BALANCE_DATA, File = balance_data.f90, Line = 9, Column = 1
This statement must begin with a label, a keyword, or an identifier.
#endif
^
ftn-100 crayftn: ERROR BALANCE_DATA, File = balance_data.f90, Line = 11, Column = 1
This statement must begin with a label, a keyword, or an identifier.
Does anyone know how I can make the Cray compiler happy? (This code, BTW, compiles fine with intel and gcc.)