如图所示,我用的是coldeblocks, Gfortran编译器,可以运行hello world 或者其它自己写的程序,一旦语句包含module 就会出现类似的报错,同样的程序别人可以运行。
报错语句:
[Fortran] 纯文本查看 复制代码 module const
implicit none
integer::m,n
end module const
program main
implicit none
use const
end
错误详情:
||=== Build file: "no target" in "no project" (compiler: unknown) ===|
||Warning: Nonexistent include directory 'G:\fortran program\test\main.os_output_dir' [-Wmissing-include-dirs]|
G:\fortran program\test\main.f95|7|Fatal Error: Can't open module file 'G:\fortran program\test\main.os_output_dir/const.mod0' for writing at (1): No such file or directory|
||=== Build failed: 1 error(s), 1 warning(s) (0 minute(s), 0 second(s)) ===|
G:\fortran program\test\main.f95|7|Fatal Error: Can't open module file 'G:\fortran program\test\main.os_output_dir/const.mod0' for writing at (1): No such file or directory|
新手求助!感激不尽!!
|