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.

USE statement

kin_c_wong
Beginner
394 Views
Can a module that is being usedin a USE statementbe placed in a library or in another directory? If so, what is the syntax for accessing the module? For example,
USE myModule
Can I place myModule.f90$mod in a library or in aother directory?
Thanks,
Kin
0 Kudos
1 Reply
Steven_L_Intel1
Employee
394 Views
The .mod or .f90$mod (VMS) file is located by the compiler as if it were an INCLUDE file, and uses the same paths. It can be in a different folder, as long as it's one of the places the compiler looks for INCLUDE files.
The object module (.obj) generated when the module is compiled can be placed in a library, and the linker will follow its normal rules for finding it.
0 Kudos
Reply