- #1
mgborja
- 2
- 0
Hi!
I am writing a simple code to get familiar with creating Fortran module. The program consist of a main.f and a module.mod file. When I type in:
I get the following error:
I think I found the problem but I don't know how to fix it. It turns out that module.mod is a file with property type: Amiga SoundTracker audio (audio/x-mod). The extention .mod is being recognized by defult as an audio file and not as a Fortran text file.
I have done every thing I can. I changed the "open with" option to open with GVim by defult but that does not change the file type to a Fortran text file. I also tried changing the name to module.f which changes the property type to Fortran source code (text/x-fortran) but then when I execute teh main,f file I get this error instead:
The file <filename> and stat <filename> commands have not helped eather. It seems like an easy problem to fix but I just don't know how :(
Please help
I am writing a simple code to get familiar with creating Fortran module. The program consist of a main.f and a module.mod file. When I type in:
Code:
gfortran main.f
I get the following error:
Code:
Fatal Error: File 'module.mod' opened at (1) is not a GFORTRAN module file
I think I found the problem but I don't know how to fix it. It turns out that module.mod is a file with property type: Amiga SoundTracker audio (audio/x-mod). The extention .mod is being recognized by defult as an audio file and not as a Fortran text file.
I have done every thing I can. I changed the "open with" option to open with GVim by defult but that does not change the file type to a Fortran text file. I also tried changing the name to module.f which changes the property type to Fortran source code (text/x-fortran) but then when I execute teh main,f file I get this error instead:
Code:
Fatal Error: Can't open module file 'module.mod' for reading at (1): No such file or directory
The file <filename> and stat <filename> commands have not helped eather. It seems like an easy problem to fix but I just don't know how :(
Please help
Last edited: