I am using gfortran to compile FORTRAN 77 and would like to have DEBUG build options by using the preprocessor directive #ifdef. However, when I use them I get compile time warnings "Illegal preprocessor directive". Is it possible to have this functionality without deviating from the standard toolchain?
A:
The c preprocessor can be used on the FORTRAN code for this purpose.
http://gcc.gnu.org/onlinedocs/gfortran/Preprocessing-Options.html
ccook
2010-06-16 09:54:23