Say I have a package already installed on my machine and I want to figure out if I need to regenerate the module include files (.mod
) to make them compatible with the rest of my compilation. Is there any way to do this?
1 Answer. To get the version, try at the command line: $ gfortran --version GNU Fortran (Ubuntu/Linaro 4.6. 1-9ubuntu3) 4.6.
mod files are auto-generated by the compiler from the source files and they are compiler dependent (that is, a Fortran compiler can only use module files produced by that specific compiler). If a. f90 contains the statement module a then compiling a. f90 will produce both a.o and the module definition file a. mod.
Go to the MinGW section on SourceForge , click on 'Download mingw-get- setup.exe' (see fig. 2) and download, install and run the MinGW Installation manager. In the 'Basic Setup' section select 'mingw32-gcc-fortran', as shown in fig.
If the module is built using gfortran then using strings on the mod file (on Linux) will provide the compiler name and the version number. However, for Intel, the strings command will only show the compiler version number.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With