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.

10.00 fortran error

kyi
Beginner
661 Views

1. I made static 'test.lib' using Intel Fortran.

2. I linked 'test.lib' from MS Visual C++.

It was OK if I make 'test.lib' using 9.1, but when I tried to link 'test.lib' made using 10.00, I got following error.

test.lib(test.obj) : error LNK2001: unresolved external symbol ___intel_f2int

How can I resolve this?

0 Kudos
3 Replies
Steven_L_Intel1
Employee
661 Views
You need to update the library paths for VC++ to reference the ifort 10.0 libraries instead of 9.1. Tools..Options..Projects..VC++ Directories..Library Files.

Note that at present you will have to revise this each time you install an update to 10.0 as the folder name will change.
0 Kudos
kyi
Beginner
661 Views

Thank you for your reply.

But, could you explain in detail? I added new line as you suggested as,

$(ProgramFiles)IntelCompilerFortran10.0.026IA32Lib

at Tools->Options->Projects and Solutions->Libray files. But I got same error message.

0 Kudos
Steven_L_Intel1
Employee
661 Views
I am not in the habit of using the $ macros - are you sure that one works? Make sure you don't also have the 9.1 folder in this list.

The other thing you can do is set the linker "verbose" option in the linker property page. This will tell you which libraries it is searching.
0 Kudos
Reply