文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > Installing Fortran Compiler
侵权投诉

Installing Fortran Compiler

Installing Fortran Compiler for codeblocks

Goto menu "Project" -> "Project tree" -> "Edit file types categories" Click on "Add" to add a new type of files Select "Fortran Sources" as group name Enter the following in the file-mask (without quotation marks): "*.f;*.f77;*.cmn;*.inc;" Click OK to close the dialog.

For your interest: "*.f;*.f77" are normally the default extensions for source code files, "*.cmn" is the extension for Fortran common-blocks and "*.inc" if often used as include file with e.g. variable declarations. Setting up Fortran projects

To work with Fortran files, do the following: Add a (new) file to the project, saved as

"your_fortran_file.f". Verify it's recognised as "Fortran Sources" file type. If not verify you have done the steps above correctly. To enable compiling the project which includes Fortran files follow these steps:

Right click on the project, select "Build options" and make sure you have selected the

"GNU G77 compiler" (see steps above).

Right click on the "your_fortran_file.f" file and select "Properties".

1.) Enable "Compile file" and "Link file".

2.) Under the "Advanced" tab enter "CC" as compiler variable

Compile the project, it should work by now. Troubleshooting

For troubleshooting enable the "Full command line" Under menu "Settings" -> "Compiler" -> "Other" tab, "Compiler logging". If you see that still the gcc compiler is invoked, make sure you setup the right compiler in the build options for your project AND your target (e.g. "default"). Using gfortran instead of g77

The preceding steps can also be used to set up Code::Blocks to use the GNU gfortran Fortran '95 compiler, albeit with the following changes:

Setup the compiler as follows:

1.) The "Compiler's installation directory" should point to the location of the root directory of the gfortran installation, for example if gfortran.exe is located in C:\gfortran\bin the path should read "C:\gfortran" (minus quotes).

上一页第2页

你可能喜欢

热门文档

相关文档

  • Fortran+compiler+for+Abaqus

    Fortran compiler installation for Abaqus By A_sun Generated by Foxit PDF Creator ? Foxit Software http://www.foxitsoftware.com For evaluation only. Setup...

  • ...Interval IO in the GNU Fortran Compiler 2 Table ...

    暂无评价 56页 免费 GNU C Compiler Internals 33页 5财富值 Installing Fortran Compi... 3页 2财富值 The GNU Eiel Compiler 暂无评价 10页 免费...

  • 关于Marc与fortran的连接问题

    除了以上的函数库,当然我们还需要 fortran compiler 和 lib For 32 bit C:\Program files\intel\compiler\11.0\075\fortran\bin\IA32 C:\Program files\intel...

  • 几种Fortran+编译器

    Open Source Watcom / OpenWatcom Fortran Compiler 在和微软及Borland的C++开发工具竞争失败后, Watcom 改变了发展策略, 致力于开发开 放源代码的免费开发工具。虽然...

  • 如何安装MARC2007跟FORTRAN

    先安装visual studio.net2003,再安装intel fortran9.0,最后安装marc2007。一....Vc7\PlatformSDK\Lib;C:\Program Files\Intel\Compiler\Fortran\9.0\IA32\...

  • fortran安装

    Intel® Itanium Assembler to produce Itanium-based applications, version 9.0 安装 Intel Fortran Compiler for Intel EM64T-Base, 默认目录就是/opt/intel/...

  • abaqus6.13+vs2012+Intel Fortran 2013 (abaqus6.13中F...

    目前Abaqus的最新版本已经是6.13-1,Intel Fortran编译器的最新版本也已经到了IntelParallel Studio XE 2013 Fortran Compiler, visual studio的版本也有2012了。 ...

  • fortran入门

    2、在工作站使用 FORTRAN 学校计中工作站也提供 FORTRAN COMPILER,使用方式很简单,只需要在 存放 FORTRAN 档案的目录下面输入下面叙述即可: 本页已使用福昕阅读器...

  • FORTRAN语言简介

    FORTRAN 77 FORTRAN 90 FORTRAN 95 3 FORTRAN COMPILER 简介1 Visual FORTRAN –––– Microsoft Digital Compaq Microsoft Visual Studio 完整的windows程式开发工具...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email