

- #Codeblocks compiler setup mac os
- #Codeblocks compiler setup install
- #Codeblocks compiler setup code
#Codeblocks compiler setup code
The code statistics tool runs through your entire project and tells you how many lines of code you have, and how many lines contain comments. The first one can be used to auto-indent your Fortran code, making it easier to find those nasty missing “end” statements. Two really nice plugins are “Format Fortran Indent” and “Code statistics”. Playing with this IDE is the only way to learn about all its options. The Code::Blocks IDE is well suited for the former tasks, and we will return to these later. Of course any real project will contain many files, and when you start to create fortran 2003/2008 code you will want to use “.f2003” or “.f03” instead of “.f90”.
#Codeblocks compiler setup install
Run the downloaded installer and accept the default options to install GCC Windows file. Choose the installer with GCC Compiler, e.g., which includes MinGW’s GNU GCC compiler download and GNU GDB debugger with Code::Blocks source files. UPDATE : As the gcc page has changed significantly since this post was written, I suggest to follow the procedure described here for the installation of a 64bit version of the compiler. Step 2) Select the installer with GCC for Windows compiler. A solution to this problem is given in this post. The latter two are known to have a recently fixed compiler-bug related to the automatic finalization of objects.

Be careful if you are doing this while upgrading from gfortran 4.8 to 4.9 or 4.10. This will provide you with the latest build. Go for binaries and get the installer if you are using Windows. In 5 steps everything is installed and you are up and running: Furthermore, installing this IDE combined with for example the gcc compiler can be done quickly and without much hassle, as is explained in this excellent tutorial.
#Codeblocks compiler setup mac os
In addition, this IDE has been developed for Windows, Linux and Mac Os X, making it highly portable. It supports several programming and scripting languages including C and fortran, making it also suited for mixed languages development. This, however, does not make them less useful. Free fortran IDEs are rather scarce and quite often are the result of the extension of a C++ focused IDE. There are some commercial IDE’s that can handle fortran ( MS Visual Studio, or the Lahey IDE). When starting to use fortran, you are in for a bit of a surprise. If you are used to programming in C/C++, Java or Pascal, you probably do this using an Integrated Development Environment (IDE’s) such as Dev-Cpp/ Pascal, Netbeans, Eclipse, … There are dozens of free IDE’s for each of these languages. Code-statistics for the hive3 code (feb.2015)
