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

Cascading dependencies

OP1
New Contributor III
739 Views
Assume that I have a IVF 10 project P, which calls subroutines from a static library L1. This static library needs subroutines defined in another static library L2. L1 and L2 have both their own module which contains explicit interface blocks for the subroutines they contain. P does not call directly any subroutine from L2.

It seems obvious that L2 is among the dependencies of L1; and that L1 is among the dependencies of P.

What is less obvious to me is that it seems that I need to declare L2 among the dependencies of P as well. Dependencies are not associative ? Am I missing something here?

(Dependenciesin the Visual Studio 2005 sense)

Thanks,

Olivier
0 Kudos
2 Replies
Steven_L_Intel1
Employee
739 Views
In IVF 10, a library dependent on another library did not cause the sub-library to be linked in. In IVF11 there's a project setting, "Link library dependencies", which controls this. This is patterned after similar functionality in Visual C++.
0 Kudos
OP1
New Contributor III
739 Views
One more reason to upgrade... Thanks Steve!!

Olivier.

0 Kudos
Reply