Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Building Linux exectuable

Heli_N_
Beginner
522 Views

Dear all, 

I hope this is the correct forum to ask this question. I have built my fortran exectuable on Windows 7  using Parallel Studio XE 2011 with VS 2010. 

Now I will need to build a linux exectuable as well.  I was wondering if you could guide me on the easiest way to do this. 

Also is there an equivalent of Visual Studio that can be used in Linux?

I would really appreciate your response. 

Thank you very much in Advance for your help. 

 

0 Kudos
2 Replies
TimP
Honored Contributor III
522 Views

Intel Parallel Studio is available for linux.  As on Windows, there are versions including Intel Fortran or C++, or both with Intel MPI, but there is no GUI Fortran supported by Intel.

Linux distros come with built-in support for gfortran command line.  Sometimes it is rather old, but not too difficult to update, e.g. at https://gcc.gnu.org/wiki/GFortran .

Among development GUIs for linux which support Fortran there is Oracle Studio.

What is easiest for one person may not be for another.

0 Kudos
mecej4
Honored Contributor III
522 Views

If your project is simple, that is, you just need to compile and link a set of source files, all that you need to do is to open a shell window, source the Ifort start-up script (ifortvars.sh), and type

     ifort <file1.f> <file2.f> ... -o <myprog>

If you need to use prebuilt library interfaces and libraries, such as IMSL, it is a bit more complicated. Likewise, if you need to build your own shareable libraries and link your code with them, the procedure is different on Linux. However, there is plenty of help available on the Web that will tell you how to do any of these tasks.

Older versions of Visual Studio could produce makefiles that could be moved to Linux and adapted. For example, the VS6 IDE that came with CVF6 on Windows can do so, under Project-Export Makefile.

We can be a bit more specific with tips if you tell us a bit more about the nature of your project.

0 Kudos
Reply