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

IVF project can't see static library routines

michael_green
Beginner
616 Views

Hi All,

I have made the changeover from CVF to IVF 10. I have successfully recreated my old static library, based on the old source files, as a new project. I have also converted a large CVF application to IVF. Now I have a solution containing one project (my old application) in which Ihave included a reference to my static library- in the Solution Explorer it sits just below source files. But the linker cannot see most of the routines in the library. I say most, because if I remove it altogether the error count goes up from 446 to 452. The error numbers seem to be about equal numbers of LNK2001 and LNK2019.

Does anyone have any suggestions please?

With many thanks in advance,

Mike

0 Kudos
3 Replies
Jugoslav_Dujic
Valued Contributor II
616 Views
What exactly are the error messages?

I presume that the problem can be solved by ensuring that Project settings/Fortran/External Procedures... settings are the same for both the library and the executable. It sounds as if one of your projects is created from scratch and the other converted from a CVF .dsp -- in the latter case, the converter applies CVF calling convention (stdcall, uppercase, length after string argument) by default, rather than the default IVF one.
0 Kudos
Steven_L_Intel1
Employee
616 Views
What is the parent project - C++ or Fortran? Is the library a subproject of another library? Which version of VS are you using?

If the parent project is C++ and you're using VS05, then you need SP1 for VS05.
0 Kudos
michael_green
Beginner
616 Views

Thanks Guys,

The problem was with Project settings/Fortran/External Procedures. I didn't know about them - one was set to CVF, the other to default.

Many thanks

Mike

0 Kudos
Reply