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 on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29283 Discussions

Link problems with v9samples.zip ... "cannot open file 'ifconsol.lib' "

longden_loo
Beginner
468 Views
I downloaded the code samples to see the method for calling Fortran from C++, and was interested in testing the "C_calls_Fortran"solution (specifically, the "USELIB" project in which a C++ program calls a Fortran subroutine built into a static lib. However, when I tried to build the solution, the Fortran and C++ compiled OK, but the build ends with a link error (fatal LNK1104: cannot open file 'ifconsol.lib').
Has anyone run into this before and know what it is I need to set to make this work. Something simple, I'm sure.
I'm running IVF W_FC_C_9.0.028 Thx.
- Longden
0 Kudos
3 Replies
Les_Neilson
Valued Contributor II
468 Views

You could try the following :

Inthe VS IDE Tools->Optionsunder the Projects->C++ Directories option for Library filesadd the line $(IFORT_COMPILER90)IA32lib

Les
0 Kudos
longden_loo
Beginner
468 Views
Yes,I saw that on another thread and tried it but it oddly didn't work.
I said oddly because I just found that adding $(IFORT_COMPILER90)IA32lib to the USELIB project settings [ Properties / Linker / General / Additional Library Directories ] fixed the problem.
I was mostly surprised that the packaged solution didn't work "out of the box".
Maybe cuz it's Monday :)
Thx. Longden
0 Kudos
Steven_L_Intel1
Employee
468 Views
The Fortran install does not add the Fortran library path to the MSVC library path list. You have to do this manually.
0 Kudos
Reply