Get Started on Windows*
Before You Begin
Download the Intel® Fortran Compiler
Download the Intel® Fortran Compiler onto your system through one of these ways:
- Download the Standalone package.
- Download as part of the Intel® HPC Toolkit.
To build applications with full IDE functionality, including debugging and development, you must install a supported version of Microsoft Visual Studio*. Refer to Intel® Compilers Compatibility with Microsoft Visual Studio* and Xcode* for detailed information about which version of Visual Studio to use with the compiler.
To build applications using command-line tools only, you must have a supported version of Build Tools for Visual Studio installed. Desktop development with C++ support must be selected for all versions as part of the Visual Studio or Build Tools installation. Refer to Installing Microsoft Visual Studio* for Use with Intel® Compilers for instructions on how to select Desktop development with C++.
If you open an Intel oneAPI command prompt from the Start menu, you do not need to set the environment variables as they are set automatically. If you open a standard Windows command prompt, you will need to set the environment variables as described in Use the setvars and oneapi-vars Scripts with Windows.
Invoke the Compiler From the Command Line
The following steps show how to invoke the compiler on Windows. Exact steps may vary depending on which version of Windows is installed.
Step 1: Open a Command Prompt
- Open the Start menu.
- Select Intel oneAPI command prompt under the installed version of Intel oneAPI, for example Intel oneAPI 2025.
Step 2: Invoke the Compiler
Invoke the compiler using the following syntax:
ifx [option] file1 [file2...] [/link link_options]
For example:
ifx hello.f90
To display all available compiler options, use the following command:
ifx /help
Refer to Alphabetical Option List for detailed information about available options.
Invoke the Compiler From Visual Studio
The following steps show how to invoke the compiler from within Visual Studio. Exact steps may vary depending on the version of Visual Studio in use.
Step 1: Build a binary
Launch Visual Studio.
Select File > New > Project.
In the New Project window, select a project type under Fortran.
(Set Fortran as the language in the Language dropdown).
Select a template and click OK.
Select Build > Build Solution.
The results of the compilation display in the Output window.
Step 2: Set build configurations
- Right click on Project in Solution Explorer > Properties.
- Locate Fortran in the list and expand the heading.
- Walk through the available properties to select your configuration.
Build a Program From the Command Line
Use the following steps to test your compiler installation and build a program.
- Use a text editor to create and save a file called hello.f90 with the following contents:
program hello print *, "Hello, world!" end program hello
- From a command prompt, compile hello.f90:
ifx hello.f90
- Now you can run the executable called hello, which provides immediate feedback:
hello
This outputs:
Hello, world!
Other Considerations
The conda package for the Intel® Fortran Compiler runtime no longer has a runtime dependency on the Intel® MPI Library, which is needed to enable coarrays. If you maintain a conda package that has a runtime dependency on the Intel Fortran Compiler runtime and your application uses the Intel MPI Library, you need to explicitly add the impi_rt conda package for the Intel MPI Library to the list of runtime dependencies in your project’s meta.yaml file.
Next Steps
- Explore the latest oneAPI Fortran Code Samples.
- Explore the Intel® Fortran Compiler Developer Guide and Reference.