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.

Requirement of .mod files?

dwwade
Beginner
741 Views
Okay so I'm a little puzzled why we have to include .mod files for every module used in a static .lib file when we want to hand the library over to someone else. Why do we have to do that? Why isn't the .lib file enough?

Darren
0 Kudos
1 Solution
Steven_L_Intel1
Employee
741 Views
If the procedures are module procedures, then one needs the .mod file for the compiler to see the declaration of the procedure and know what its external name is. The .lib is used by the linker only.

View solution in original post

0 Kudos
1 Reply
Steven_L_Intel1
Employee
742 Views
If the procedures are module procedures, then one needs the .mod file for the compiler to see the declaration of the procedure and know what its external name is. The .lib is used by the linker only.
0 Kudos
Reply