mgborja
Jan15-12, 09:27 PM
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:
gfortran main.f
I get the following error:
Fatal Error: File 'module.mod' opened at (1) is not a GFORTRAN module file
I think I found the problem but I dont 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 wich 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:
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 dont 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:
gfortran main.f
I get the following error:
Fatal Error: File 'module.mod' opened at (1) is not a GFORTRAN module file
I think I found the problem but I dont 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 wich 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:
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 dont know how :(
Please help