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 have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
29313 Discussions

fatal error LNK1104: connot find 'ifconsol.lib'

jldutc
Beginner
552 Views
Hello,

I am trying to compile an example furnished with ANSYS software, and I obtain the following message :


******************************************************************

This is the ANSYS Revision 120 RDRWRT batch file. It is
used to link the Reader/Writer programs to demonstrate reading
and writing ANSYS blocked binary files on the Windows 32-bit
systems.

This version uses the Intel Visual Fortran Compiler

******************************************************************

1 fichier(s) copi(s).
1 fichier(s) copi(s).
Intel Visual Fortran Compiler for applications running on IA-32, Version 10.1
Build 20080212 Package ID: w_fc_p_10.1.019
Copyright (C) 1985-2008 Intel Corporation. All rights reserved.


LINKING resrddemo.exe
Microsoft Incremental Linker Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.

LINK : fatal error LNK1104: cannot open file 'ifconsol.lib'
Microsoft Manifest Tool version 5.2.3790.2014
Copyright (c) Microsoft Corporation 2005.
All rights reserved.

mt.exe : general error c10100b1: Failed to load file "resrddemo.exe". Le fichier
spicifii est introuvable.


compilation is run with the following *.bat file (extract) :


ifort -D__IFL -DNOSTDCALL -DARGTRAIL /Zp4 -DPCWINNT_SYS -DCADOE_ANSYS -Qfpp -Qopenmp -4Yportlib -4Ya /c /Fo.\ /DFORTRAN /MD /W0 /include:"%ipath%" %srcfiles%

echo.
echo LINKING %filnam%.exe
link /machine:%platform% /subsystem:console /out:%filnam%.exe /debug:none /stack:0x4000000 -manifest -manifestfile:%filnam%.exe.intermediate.manifest %objfiles% binlib.lib
mt /outputresource:%filnam%.exe;#1 /manifest %filnam%.exe.intermediate.manifest



I have installed Visual Studio 2005 and Intel Fortran 10.1, but I have clearly pb of adress.
I found another discussion on your forum where you explain that it is necessary to modify lib path in VS/tools/... but it does not work for me.
Have you an idea ?

Thanks
0 Kudos
2 Replies
Steven_L_Intel1
Employee
552 Views

My guess is that the ANSYS batch file does not correctly set up the Intel Visual Fortran environment. It should call a file "ifortvars.bat" which will add to the LIB environment variable a folder containing ifconsol.lib.

Try this - start your command prompt session with Start > Programs > Intel Software Development Tools > Intel Fortran Compiler 10.0 > Build environment for 32-bit applications

Then from that run the ANSYS batch file.
0 Kudos
jldutc
Beginner
552 Views
Quoting - jldutc

It works.
Thanks a lot !
0 Kudos
Reply