Code blocks 编译Fortran(转载)

时间:2022-10-03 06:30:33

方法一:

 

下载页面:

http://www.codeblocks.org/downloads/binaries

下载codeblocks-17.12mingw_fortran-setup.exe 这样的版本。

 

 

方法二:

分别安装codeblocks ,以及mingwmingw-get-setup.exe),手动配置gfortran编译器

1.默认安装mingwC:\MinGW,运行C:\MinGW\bin\mingw-get.exe

 

Code blocks 编译Fortran(转载)

Basic Setup里勾选组建,然后在菜单Installation里点击apply changes.

 

2.安装code blocks后,运行。然后在菜单里选择settings -> compiler

Code blocks 编译Fortran(转载)

Select compiler那里选择GNU Fortran Compiler,选择目录,然后Auto-detect,完成

 

使用方法:

code blocks->File->new->project->fortran application