gfortran can't find OpenMP library (omp_lib.mod) using MinGW
问题 I am trying to compile a Fortran code including OpenMP. I am replicating the use of OpenMP from a different code. It built successfully once yesterday and then the next time I built it I get the following error: ../MAXBRG3D.f90:3:4: USE OMP_LIB ! USED WITH OMP FUNCTIONS 1 Fatal Error: Can't open module file 'omp_lib.mod' for reading at (1): No such file or directory compilation terminated. subdir.mk:329: recipe for target 'MAXBRG3D.o' failed make: *** [MAXBRG3D.o] Error 1 The only changes I