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

The Fortran compiler (ifort.exe) cannot be found

SL93
Beginner
1,502 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 III
1,406 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

0 Kudos
3 Replies
Steve_Lionel
Honored Contributor III
1,471 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.

0 Kudos
Barbara_P_Intel
Moderator
1,426 Views

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

 

0 Kudos
JohnNichols
Valued Contributor III
1,407 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. 

0 Kudos
Reply