What Fortran90 Compiler Should I Use for Linux?

Click For Summary
SUMMARY

The discussion centers on the challenges faced by a user attempting to compile a Fortran program on Mandriva 2008 using various compilers, specifically gcc f95 and Intel Fortran Compiler (ifort). The user encounters errors when using both ifort and g95, despite the program's manual indicating the use of an f90 compiler. The recommended solution is to utilize the g95 compiler, which is a GNU Fortran compiler compatible with Fortran 90 standards.

PREREQUISITES
  • Understanding of Fortran programming language, specifically Fortran 90 syntax.
  • Familiarity with Linux operating systems, particularly Mandriva 2008.
  • Basic knowledge of compiler installation and configuration on Linux.
  • Experience with command-line interface for executing compilation commands.
NEXT STEPS
  • Research the installation process for g95 on Mandriva 2008.
  • Learn how to troubleshoot common Fortran compilation errors.
  • Explore the differences between g95 and ifort compilers for Fortran programming.
  • Investigate alternative Fortran compilers compatible with Linux, such as GNU Fortran (gfortran).
USEFUL FOR

Individuals new to Fortran programming, Linux users needing to compile Fortran code, and developers seeking to understand compiler options for Fortran 90 compatibility.

carbon9
Messages
46
Reaction score
0
Hi folks,

I'm using Mandriva 2008 for some time and I now have to compile a program using fortran compiler. I've installed gcc f95 compiler and Intel FC but the compiling gives error when I use

ifort myfile.f
and
g95 myfile.f

In the manual of the program that I'll compile with fortran compiler, it is written as

f90 myfile.f

I think it calles a compiler using f90. Which fortran compiler is it and how can I install it?

Regards,

PS. I'm using fortran the first time:)
 
Technology news on Phys.org
The gnu fortran compiler is g95 (http://www.g95.org/)
The book is probably just written assumign that you are using any fortran 90 compiler.

What is the error you are getting - is it a fortran error or an isntall problem with the compiler?
 

Similar threads

Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 8 ·
Replies
8
Views
5K
  • · Replies 6 ·
Replies
6
Views
6K
  • · Replies 12 ·
Replies
12
Views
7K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
6K
  • · Replies 1 ·
Replies
1
Views
3K