GerritGroot
Technical User
Hi,
Imagine I've got a main program in the directory:
..and a module, to be compiled, in the directory:
To prevent a mess full of files, I like the compiled stuff in an another directory before linking it, so I send the object files to
and compile with
Why does gfortran then place the *.mod file not only in the chosen objectfile directory
but ALSO places a copy in the main directory
For routines and functions it doesn't do that. Am I doing something wrong?
Thanks,
Gerrit
Imagine I've got a main program in the directory:
Code:
./MyProgram/main.f90
Code:
./MyProgram/MODULES/mod_mymod.f90
Code:
./MyProgram/OBJECTFILES
Code:
C:/MyProgram>gfortran -c ./MODULES/mod_mymod.f90 -o ./OBJECTFILES/mod_mymod.mod
C:/MyProgram>gfortran -c ./main.f90 -o ./OBJECTFILES/main.o
Why does gfortran then place the *.mod file not only in the chosen objectfile directory
Code:
./MyProgram/OBJECTFILES
Code:
./MyProgram
For routines and functions it doesn't do that. Am I doing something wrong?
Thanks,
Gerrit