Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
27789 Discussions

The Fortran compiler (ifort.exe) cannot be found

SL93
Beginner
962 Views

Hi, I just downloaded and installed the oneAPI base toolkit and after that I did the same for the HPC toolkit. Everything was installed correctly. But once I tried to open a sample code and compile it I got the error that the fortran compiler cannot be found. I tried to open the Intel one API command prompt for Intel 64 for Visual Studio 2019 and as you can see from the image I uploaded the ifort command is there. Can someone please help me? 

 

fort.png

Labels (1)
0 Kudos
1 Solution
JohnNichols
Valued Contributor II
866 Views

You show the ifort running, but you have to give it file names to run on.  

ifort myfile.for etc.....  you will need to look up the syntax. 

View solution in original post

3 Replies
Steve_Lionel
Black Belt Retired Employee
931 Views

It would help if you instead showed us the complete session where ifort could not be found. Did you use the same shortcut to start the session? You must do that, or invoke the setvars.bat script in your own build script, to establish the environment properly.

Barbara_P_Intel
Moderator
886 Views

@SL93  Are you able to use the Fortran compiler now?

 

JohnNichols
Valued Contributor II
867 Views

You show the ifort running, but you have to give it file names to run on.  

ifort myfile.for etc.....  you will need to look up the syntax. 

Reply