Topic: Reading module

Hi

Trying to compile a .f90 routine with simply fortran I get the error message:

Fatal Error: Reading module 'name_of_module'  at line 3 column 1: Expected left parenthesis

I had not problems compiling the code with gfortran on Linux platforms.

Can you help!

Thanks  a lot.

Cornel

2 (edited by ecanot 2015-11-19 12:46:18)

Re: Reading module

From time to time, GNU gfortran changes the internal format of the precompiled module files (*.mod). If you search on Google with your error message (but after suppressing the current module name within quotes), you can find many information... Clearly, it is related to using an incompatible module file.

In your case, I guess that some *.mod files have not been deleted; they may have been created by another compiler version under Linux... Try to clean the whole project before recompiling.

Re: Reading module

Thanks for the advice. Removing the *.mod files solved the problem.