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

cannot open file 'ifconsol.lib'

barakobama
Beginner
10,219 Views

I got a link error:

LINK : fatal error LNK1104: cannot open file 'ifconsol.lib'

The file is there but the compiler not finding it.

I am making a 32bit version on Xeon with Intel Fortran 9.1 [IA32].

My lib environment which I get from "Options" under "Tool" menu is:

$(IFORTInstallDir)Lib
$(VCInstallDir)lib
$(VCInstallDir)atlmfclib
$(VCInstallDir)atlmfclibi386
$(VCInstallDir)PlatformSDKlib
$(FrameworkSDKDir)lib
$(VSInstallDir)
$(VSInstallDir)lib
C:Program Files (x86)Microsoft Visual Studio 8VCATLMFCLIB
C:Program Files (x86)Microsoft Visual Studio 8VCLIB
C:Program Files (x86)Microsoft Visual Studio 8VCPlatformSDKlib
C:Program Files (x86)Microsoft Visual Studio 8SDKv2.0lib
%IFORT_COMPILER91%IA32Lib
%IFORT_COMPILER91%EM64TLib

Could you please let me know what's wrong?

-BO

0 Kudos
54 Replies
Steven_L_Intel1
Employee
1,791 Views

Peter, that would have no effect for a Fortran project.  Please set the project property Linker > General > Show Progress > Show some progress messages), do a rebuild, and then attach a zip of the buildlog.htm from the Debug folder.

0 Kudos
Peter_A_1
Beginner
1,791 Views

Steve, Build logn i attached.

Peter

0 Kudos
Steven_L_Intel1
Employee
1,791 Views

Ok - well, that didn't tell me much.

What do you have listed under Tools > Options > Intel Composer XE > Visual Fortran > Compiler > Libraries?

I assume you saw the compile error for the directive that is missing the routine name. I had fixed this when I was playing with your project earlier.

0 Kudos
Peter_A_1
Beginner
1,791 Views

Steve

$(IFortInstallDir)lib\ia32;$(VCInstallDir)atlmfc\lib;$(VCInstallDir)lib;$(WindowsSdkDir)lib

Sorry if there was an error. This verison comple fine on my spare PC.

Peter

0 Kudos
Steven_L_Intel1
Employee
1,791 Views

You didn't provide the information from Tools > Options I asked for.

0 Kudos
Peter_A_1
Beginner
1,791 Views

Oops. I did not noitice the ..,

$(IFortInstallDir)lib\ia32
$(VCInstallDir)atlmfc\lib
$(VCInstallDir)lib
$(WindowsSdkDir)lib

Peter

0 Kudos
Steven_L_Intel1
Employee
1,791 Views

That looks ok. Try putting in the full path to the lib\ia32 folder in that list as a workaround.

0 Kudos
Peter_A_1
Beginner
1,791 Views

Thanks. Thr patch works provided the full path is first e.g.

'C:\Program Files (x86)\Intel\Composer XE 2013\compiler\lib\ia32'
$(IFortInstallDir)lib\ia32
$(VCInstallDir)atlmfc\lib
$(VCInstallDir)lib
$(WindowsSdkDir)lib

How can I find the value of my "$(IFortInstallDir)" or some other sysmbol?  ThoughI guess if it was wrong nothing would work?

Thanks

0 Kudos
Steven_L_Intel1
Employee
1,791 Views

I too would have expected it would either work everywhere or nowhere. I know we had some issue with these pseudo-environment-variables in Update 2 that were fixed in Update 3, but perhaps there is some lingering issue. The values come from the registry when Fortran is installed.

0 Kudos
Peter_A_1
Beginner
1,791 Views

Steve

The problem has returned and I cannot name any changes.

  1. The " Try putting in the full path to the lib\ia32 fold" patch is still in place.
  2. I tried adding the path to the project libraries
  3. I even tried rebootiing ..               but no,luck.

Peter

0 Kudos
Steven_L_Intel1
Employee
1,791 Views

What if you put the path in Linker > General > Additional library directories?  This is all very strange... Please attach another zipped buildlog.htm after trying this (if it doesn't work.)

0 Kudos
Peter_A_1
Beginner
1,791 Views

Hi Steve

The recent problem was solved by remoiving my quotes e.g.

C:\Program Files (x86)\Intel\Composer XE 2013\compiler\lib\ia32

and is fine in " Tools > Options > Intel Composer XE > Visual Fortran > Compiler > Libraries?"

But, as I "cut and pasted way above" the quotes were there whan we fixed it!

Peter

0 Kudos
Steven_L_Intel1
Employee
1,791 Views

Right - you should not use quotes here.

0 Kudos
Reply