Category: Fortran

Code:Blocks 编译fortran

Code:Blocks 编译fortran方法如下:

(1) 新建Poject, Categories选择Fortran, 然后选择Fortran application
QQ截图20150325090003
(2) 设置好路径和工程名,next设置complier, 选择GUN Fortran Complier
 QQ截图20150325090106
(3) 添加fortran文件,如example.f 编译即可。
(4) 编译好的exe文件直接双击,会提示错误,丢失dll文件。解决办法是,在Code:Blocks的安装目录中,如D:\Program Files\CodeBlocks, 搜索相应的DLL, 然后复制到C:\Windows\Syst[……]

Read more