Reputation: 689
I'm able to compile and output the object file ".o" into my "obj" folder. But, I can't make the ".mod" into my "mod" folder. The following is my current command:
ifort -c foo.f90 -o../obj/foo.o
Upvotes: 2
Views: 3095
Reputation: 21431
Use the -module command line option to specify the directory for the output of the mod files that result from compiling Fortran modules.
-module
Upvotes: 9