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.
29307 Discussions

Abstract data type and type-bound procedures in a static library?

Jon_D
New Contributor II
488 Views

I have a Fortran module that includes an abstract data type and its type-bound procedures (all are non-overridable). When I place this module in a static library and then link my main program to this library, the linker complains about not finding the type-bound procedures.  If I do away with the static library and add the module source code to my Visual Studio project directly, I get no problems and the resulting program runs fine.

Is this a compiler bug or an expected behavior? Can I not include abstract data types in a static library to be called later?

I am using VS 2010 with IVF version 13.0.1.119, Win 7 operating system.

Thanks for any help,

Jon

0 Kudos
2 Replies
Steven_L_Intel1
Employee
488 Views
Please attach a ZIP of a sample project showing the problem.
0 Kudos
Jon_D
New Contributor II
488 Views

I wasn't able to replicate the problem with a simple test case. I went back and tried linking to the static library in my actual project and it worked this time. I don't know what changed but it looks like I can indeed include abstract data types in a static library.

Jon

0 Kudos
Reply