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

module

feipeng
Beginner
605 Views
I want to put the .mod files in the directory ./object using the flag '-module ./object'. But all the .mod files are in the current directory. What's wrong?

Thanks for your hint.

Feipeng
0 Kudos
2 Replies
Lorri_M_Intel
Employee
605 Views

I just did the quick experiment, and it worked for me.

How about sharing the exact command line, and the version of the compiler that you're using, and then maybe we can figure out the issue.

- Lorri

0 Kudos
feipeng
Beginner
605 Views
Sorry, it's just my mistake.

I have a Makefile for three platforms with different compilers: ifort, lf95 (Lahey/Fujitsu), f95 (Sun workstation). lf95 and f95 use the option -M./object to specify the path of .mod files. When I copy the software to ifort, -M was not recognized correctly and the .mod files are put into the current directory. After I changed the Makefile and run 'make clean', the old .mod files were not removed.

In fact, it works well.

Thanks for your kindness.

Feipeng
0 Kudos
Reply