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

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

keweive
Beginner
685 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
685 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