李旭
Fortran: FORTRAN Programming Environment For Windows
2015-5-19 22:16
阅读:3972
标签:IDE

开贴介绍一个小型Fortran编程环境的安装及搭建。这一Fortran编程环境是由两款免费软件搭建而成,MinGW负责编译,Code::Blocks负责前端的图形界面。环境搭建过程描述在下:

1.下载(here)并安装MinGW32bit),双击mingw-get-setup.exe开始安装,当出现如图 1所示窗口时,注意勾选mingw32-baseC Compiler,也安装它的原因是the C compiler is always installed)和-gcc-fortranFortran Compiler),选中之后依次Installation-Apply Changes,等待片刻自动下载安装文件,安装完成后关闭打开的窗口。

1

2.下载(hereCode::Blocks,依据系统平台选择下载文件,这里选择For WindowsCodeBlocks_Fortran_v1.2_Win.zip,这里不需要安装,解压之后双击codeblocks.exe,程序自动检测到Fortran Compiler显示如图 2,选中GNU Fortran Compiler,再选中旁边的Set as default,这时当下的默认编译器即为Fortran Compiler,再OK。紧接着弹出图 3窗口,这里直接选择OK,以后还可以再修改。

2

3

3.新建和打开Fortran程序参考:To create a new fortran program click on file>New>File>Select Fortran Source>Hit Go and follow the instructions in the dialog boxTo open an existing fortran source file select File>Open> and navigate to the fortran source file

Code::Blocks界面颜色修改方法,颜色修改作用于Editor部分,这部分又分为两块分别设置背景颜色,如图 412 

4

对于1Settings-Environment-Colours-Editor: Line numbers background colourset your colour.

对于2Settings-Editor-Syntax highlighting-Default

字体设置

In "Settings -> Editor...-> General Settings" click "Choose".

It's the button in the top-right corner.


  

References

[1] FORTRAN Programming Environment For Windows & Mac OSX.

[2] MinGW, Minimalist GNU forWindows.

[3] Code::Blocks, The opensource, cross platform, free C, C++ and Fortran IDE.

[4] CodeBlocks_User_Manual_en.pdf.

[5] Code::Blocks IDE for Fortran.

[6] Ten minutes to setup Modern Fortran 2003-2008 on Windows.pdf.

转载本文请联系原作者获取授权,同时请注明本文来自李旭科学网博客。

链接地址:https://wap.sciencenet.cn/blog-1148346-891344.html?mobile=1

收藏

分享到:

当前推荐数:0
推荐到博客首页
网友评论0 条评论
确定删除指定的回复吗?
确定删除本博文吗?