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

how to specific the path where the .mod file will be create to

keweive
Beginner
445 Views
as we know, the .mod file will be Created if a source file being compiled defines a Fortran module (MODULE statement).
the .mod file will be in the current path
Can I specify the Path where this file will be ceated to, and How?
thanks for you attention!

0 Kudos
1 Reply
Kevin_D_Intel
Employee
445 Views

As documented in the ifort Users guide, use the -module option.

module

Specifies the directory where module files should be placed when created and where they should be searched for.

Syntax

Linux and Mac OS X: -module path

Windows: /module:path

Arguments

path Is the directory for module files.



0 Kudos
Reply