Как установить компилятор Fortran 9x? [дубликат]

Я хочу установить программу под названием OSIRIS, но мне нужен компилятор Fortran 9x. Мне было интересно, как мне его установить? Я использую Ubuntu 16

1
задан 29 October 2018 в 11:40

2 ответа

Фортран GNU 95 компиляторов существует в официальных репозиториях Ubuntu.

Пакет называют gfortran.

Можно установить его командной строкой в терминальном выполнении

sudo apt install gfortran

Посмотрите больше информации в сети gfortran пакет: https://packages.ubuntu.com/xenial/gfortran

0
ответ дан 7 December 2019 в 13:21

Установка gfortran.

От man gfortran

   -std=std
       Specify the standard to which the program is expected to conform,
       which may be one of f95, f2003, f2008, gnu, or legacy.  The default
       value for std is gnu, which specifies a superset of the Fortran 95
       standard that includes all of the extensions supported by GNU
       Fortran, although warnings will be given for obsolete extensions
       not recommended for use in new code.  The legacy value is
       equivalent but without the warnings for obsolete extensions, and
       may be useful for old non-standard programs.  The f95, f2003 and
       f2008 values specify strict conformance to the Fortran 95, Fortran
       2003 and Fortran 2008 standards, respectively; errors are given for
       all extensions beyond the relevant language standard, and warnings
       are given for the Fortran 77 features that are permitted but
       obsolescent in later standards. -std=f2008ts allows the Fortran
       2008 standard including the additions of the Technical
       Specification (TS) 29113 on Further Interoperability of Fortran
       with C and TS 18508 on Additional Parallel Features in Fortran.
2
ответ дан 7 December 2019 в 13:21

Другие вопросы по тегам:

Похожие вопросы: