gfortran compiler cannot find misspelled full directory
问题 I was able to make a much simpler example than the one in my original post. I'm trying to compile a fortran code using gcc version 4.9.2 (x86_64-posix-seh-rev4, Built by MinGW-W64 project) on windows. Below is a batch script that I used to successfully compile the code: SET SRC_DIR=code gfortran -fopenmp -g -fimplicit-none -cpp ^ %SRC_DIR%/globals/current_precision.f90^ %SRC_DIR%/string/string.f90^ ... %SRC_DIR%/user/MOONS.f90^ parametricStudy.f90^ -o main.exe del *.mod The output looks like