I am wring Fortran code in linux. My module file is in a *.f90 file. "program main" is in another *.f90 file. When I tried to compile my code in ubuntu "gfortran main.f90", errors said that can't find my module file.
program main
use module_name
Just now, I see someone say the files are compiled alphabetically. If this is the reason, then I am in big trouble. Because my program has called many subroutines and functions which are in different f90 files. So how to resolve this problem? Thanks.