Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
27152 Discussions

Compilation error using VS2019 Build Tools

Sid91
Beginner
260 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
Valued Contributor III
234 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
209 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