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

How to compile fortran90 with Makefile on window10

CHOI__YOUNGDON
Beginner
3,625 Views

 I'm having fortran90 modeling source code and Makefile for linux on attached file.

 I created execution file for this code on ubuntu OS, and now I want to create executable file for window 10 (64bit).

For this, I installed Microsoft Visual Studio 2010 and Intel Visual Fortran. 

But I don't know how to start intel visual fortran? Can you give me a information about procedure to compile it?

If possible, I want to use Makefile on window os. Can you give me information how to use it on window os and how to install and assign netcdf and lapack library in Makefile?

 

0 Kudos
3 Replies
Steve_Lionel
Honored Contributor III
3,625 Views

Microsoft Visual C++ (or the bundled Visual Studio Shell-based environment) provides nmake, which is a Microsoft variation on make. Some people use cmake as an alternative, which they obtain separately. You can read the Microsoft documentation on nmake.

If you want to link to specific libraries, the easiest way is to just give the full path to each library on the command that links the executable (generally "ifort" if you're building an Intel Fortran program.) Remember to enclose the path in "" if there are any embedded blanks.

0 Kudos
TimP
Honored Contributor III
3,625 Views

For netcdf, you really should consult the official sites, e.g. https://www.unidata.ucar.edu/software/netcdf/docs/winbin.html

That site is exemplary in some ways; for example, it discusses the alternatives of cmake and gnu make (yes, even for windows).

0 Kudos
Greg_T_
Valued Contributor I
3,625 Views

There is a makefile comparison for both Linux and Windows in another topic that may help you:

https://software.intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x/topic/673617

I have found that just a few changes are needed to convert a makefile from one OS to another.

Regards, Greg

Reply