Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compiling MVS 2010 Fortran project with recourse to .mod and .o module files

Status
Not open for further replies.

COQ

Programmer
Nov 3, 2019
1
FR
Dear all,
I'm using Microsoft Visual Studio 2010 (MVS 2010) for compiling and debugging FORTRAN projects. I'm currently working on a project that was developed by a collaborator.

The project is composed of several Fortran (.f90) files containing the main program and sub-routines. It also make use of external modules (with the key-word "Use") which are given in the form of .mod and .o files (thus, already compiled). However, I don't have the source files of these modules.

However, I don't manage to build and generate the solution with MVS2010. The compiler does not recognise the modules and all the variables and procedures it contains by indicating "This module file was not generated by any release of this compiler". Yet, the .mod and .o files are present in the compilation directory. I have also saved these files in the "Debug" sub-foolder.

I'm not acustomed to use external modules. Is somebody able to explain me how to go about and solve my problem ? How can I indicate to the compiler that it must take into account the module files ?

Thank you very much by advance

Rémi
 
Looks like the modules were built with gfortran. Not sure if these are compatible with microsofts object format.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top