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

Installing Fortran on Windows 10 for CLI interface/console applications only

tonylewis
Beginner
2,523 Views

In looking over the available documentation, if one only wants to run the compiler in command line interface only (e.g. console applications), it appears that Visual Studio has to be installed with the C++ files from Microsoft?

 

Or is there a way to set up the Fortran compiler on a Windows 10 PC (for CLI interface only) without loading VS?

 

Thanks.

0 Kudos
3 Replies
Steve_Lionel
Honored Contributor III
2,497 Views

Not that I know of, but you don't have to use VS and can do builds and run from the command line.

0 Kudos
Ron_Green
Moderator
2,461 Views

Somewhere we had a document on installing the Microsoft Visual Studio Build Tools with C++ Component followed by installing Intel Fortran.  I can't find that article but it might be online somewhere.  This allows command line usage without installing the full Visual Studio IDE.  But doing so only allows you to use ifx directly, or DEVENV.  You cannot use the MSBuild to build a project from the command line with this limited set of VS Tools.  Refer to this Forum Post for MSBuild not available. 

 

The general process is to first install the Visual Studio Build Tools.  During installation you must select installation of C++ components.  After that is installed install Intel Fortran.  The download for VS Build Tools is on THIS page.  Open the "Tools for Visual Studio" group, at the bottom of which is "Build Tools for Visual Studio" download.  Remember during the installation to select to install C++ components. 

 

Ron_Green_0-1753220481611.png

 

You can refer to some recent posts on this topic in this forum, such as https://community.intel.com/t5/Intel-Fortran-Compiler/2024-Fortran-Compiler-with-Visual-Studio-Build-Tools/td-p/1559581

 

 

0 Kudos
Steve_Lionel
Honored Contributor III
2,252 Views

Some time ago I tried the "Build Tools" method Ron mentions, but I could not even get ifort to install. Maybe it works better now.

0 Kudos
Reply