This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

-M nor -J work as intended


gfortran seems to work ok with modules in the same directory, but if fails to get modules localted in a subdirectory. I tried with both -M and -J and both with space and without it.

version: GNU Fortran 95 (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

failure:


$ ls mods error.mod

$ gfortran -M mods -c newton_rapshon_test.F95
 In file newton_rapshon_test.F95:3

use error
1
Fatal Error: Can't open module file 'error.mod' for reading at (1): No existe el fichero o el directorio


$ gfortran -Mmods -c newton_rapshon_test.F95
gfortran: unrecognized option '-Mmods'
 In file newton_rapshon_test.F95:3

use error
1
Fatal Error: Can't open module file 'error.mod' for reading at (1): No existe el fichero o el directorio


$ gfortran -Jmods -c newton_rapshon_test.F95
 In file newton_rapshon_test.F95:3

use error
1
Fatal Error: Can't open module file 'error.mod' for reading at (1): No existe el fichero o el directorio


$ gfortran -J mods -c newton_rapshon_test.F95
f951: error: missing argument to "-J"


Regards


Noel Torres


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]