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.

Requirement of .mod files?

dwwade
Beginner
702 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
702 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
703 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