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.
27784 Discussions

Compilation error using VS2019 Build Tools

Sid91
Beginner
409 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
383 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.

Steve_Lionel
Black Belt Retired Employee
358 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.

Reply