darmar

  • Increase font size
  • Default font size
  • Decrease font size

News

(2010.06.02)

The new 0.4.1 release is now available. In this version one bug, which caused C::B to crush, was fixed (thanks to Ying Wu for bug report). The source code of this version is based on C::B 10.05 release.

(2010.05)
The new version (0.4) of CB for Fortran is out . In this version code-completion was considerably improved (added support for local variables and components of derived types).  Besides, implemented appearance of tool-tips, Fortran info tab in log window, a new settings dialog, improved Symbols browser. The support of compilers g95 and Intel Fortran was added.

Code::Blocks IDE for Fortran

Code::Blocks is a free, cross platform Integrated Development Environment (IDE) oriented towards C/C++ language. You can find more information at its home page (www.codeblocks.org).
I want to make Code::Blocks more useful for Fortran programmers. I have added some features which are not present in official Code::Blocks distribution. First of all, I am developing a plugin called FortranProject. Additionally I have added the support of some Fortran compilers and some more. With these addons the Code::Blocks can serve as a good Fortran IDE.

Features

  • Editor with Fortran syntax highlighting (fixed and free form).
  • Compilation of Fortran project directly from IDE. FortranProject plugin should care about Fortran file dependencies. Alternatively you can use your supplied makefile.
  • Possibility to jump directly to the code line with an error (currently the support of gfortran, g95 and Intel Fortran is implemented).
  • Symbols browser with defined program units (functions, subroutines, modules etc.) in your project.
  • Possibility to jump to code line with subroutine/function definition directly from editor (right click on the name and select  "Jump to: 'name'") or from the symbols browser (double click on the name).
  • Program debugging using GNU GDB.
  • Completion of names when you type or when you press Ctrl+Space (you can change the key combinations in Editor's Settings).  Currently the support for subroutine/function names, the names of local variables and the components of derived types is implemented.
  • Call-tips with subroutine/function argument list. Appears automatically or when you press Ctrl+Shift+Space.
  • Appearance of tooltips when you hold mouse on variable or name of subroutine.
  • Jump back and forth again to the edited file or the marked line (BrowseTracker plugin, use Alt+arrow).
  • and more

Screenshots 

  • WizardWizard
  • Hello WorldHello World
  • Code completionCode completion
  • TooltipTooltip
  • DebuggerDebugger
  • Code-completionCode-completion
  • Jump to...Jump to...
  • SettingsSettings
  • g95 pathg95 path

License

Code::Blocks (and FortranProject plugin) is distributed at GPLv3.

Download

Download page

Installation

Just extract archive in your favored directory. To launch Code::Blocks run codeblocks.exe (on Win) or codeblocks_run.sh (on Linux). If you have another Code::Blocks distribution on your system you may want to start Code::Blocks as a portable app by executing startup script codeblocks_portable.bat (codeblocks_run_portable.sh). Code::Blocks saves all settings in installation directory if you launch program using codeblocks_portable.bat (codeblocks_run_portable.sh).
Prerequest

Compiled version comes with all required *.dll packed in. So you should be able to run IDE. Linux version was compiled on Ubuntu 9.10 but was successfully tested on Ubuntu 10.04, Fedora 12 and openSuse 11.2 too.

To be able to compile your Fortran files, of course, you should have installed Fortran compiler (gfortran, g95 or another one). Windows users should install MinGW on a system first. I would suggest to install MinGW from tdm-gcc.tdragon.net. If you are going to use gfortran, don't forget to mark it during installation. Alternatively you can install g95 (www.g95.org), but you need MinGW anyway. (Note: TDM-mingw version 4.4.1 of gfortran comes with a bug. Workaround is to add the linker option '-static-libgcc' in your Fortran project).

Setup of compiler's installation directory

Windows users may need to help Code::Blocks to find MinGW and Fortran compiler on their system. Short instruction:

1) In Code::Blocks open "Settings -> Compiler and Debugger..." dialog. Find "GNU GCC Compiler".  Open "Toolchain executables" tab. Fill "Compiller's installation directory" text-box (in my case it is C:\MinGW32).

2) For gfortran compiler. Find "GNU Fortran Compiler". Open "Toolchain executables" tab. Fill "Compiller's installation directory" text-box (in my case it is C:\MinGW32).

3) For g95 compiler. Find "G95 Fortran Compiler". Open "Toolchain executables" tab. Fill "Compiller's installation directory" text-box (directory where g95 compiler was installed; in my case it is C:\g95).

User manual

You can download Code::Blocks user manual from www.codeblocks.org/user-manual .

About me

My name is Darius Markauskas. I develop for this project on my spare time.
About my main work you can read here.

Have questions, suggestions? Found a bug?
Write me to: This e-mail address is being protected from spambots. You need JavaScript enabled to view it

 

 

Code::Blocks for Fortran