akaGM
Platinum Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору Andrew10 Цитата: Если #-директивы не всеобщий стандарт, какой смысл переходить на них с !DEC$? | не знаю насчёт стандарта, но не IF'ом единым... gfortran: Цитата: 1.3 Preprocessing and conditional compilation Many Fortran compilers including GNU Fortran allow passing the source code through a C preprocessor (CPP; sometimes also called the Fortran preprocessor, FPP) to allow for conditional compilation. In the case of GNU Fortran, this is the GNU C Preprocessor in the traditional mode. On systems with case-preserving file names, the preprocessor is automatically invoked if the filename extension is .F, .FOR, .FTN, .fpp, .FPP, .F90, .F95, .F03 or .F08. To manually invoke the preprocessor on any file, use -cpp, to disable preprocessing on files where the preprocessor is run automatically, use -nocpp. If a preprocessed file includes another file with the Fortran INCLUDE statement, the included file is not preprocessed. To preprocess included files, use the equivalent preprocessor statement #include. |
|