Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

The Fortran compiler (ifort.exe) cannot be found

SL93
Beginner
2,834 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
2,738 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
2,803 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
Employee
2,758 Views

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

 

0 Kudos
JohnNichols
Valued Contributor III
2,739 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