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

Compilation error using VS2019 Build Tools

Sid91
Beginner
567 Views

Hi, I'm trying to compile a fortran 77 code with ifort but I get this error :

LINK : fatal error LNK1104: impossible d'ouvrir le fichier 'ifconsol.lib'

I'm doing this from a VS2019 build tools developer powershell command. 

 

hope you can help, regards

Sid

0 Kudos
2 Replies
Arjen_Markus
Honored Contributor I
541 Views

Do you (re)compile the complete code or do you use some libraries that were built previously? Can you show us the command-line you are using?

We should determine where the reference to ifconsol.lib is coming from.

0 Kudos
Steve_Lionel
Honored Contributor III
516 Views

Also, show us all the text from the start of the command session to where you issue the ifort command. Using ifort from a Powershell window is tricky - what I found works best is to start with the cmd.exe shortcut Intel installs in the Start menu, and then type "powershell" to start a ps session, keeping all of the paths and environment variables intact.

0 Kudos
Reply