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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Latest gfortran installer for windows doesn't work

Status
Not open for further replies.

GerritGroot

Technical User
Nov 3, 2006
291
ES
Hi,

I installed: Link (gcc-4.8.0)

Thinking that I was updating my compiler, however compiling I get the error:

Code:
Warning: Nonexistent include directory

Uninstalling it and reinstalling my old "gfortran-windows.exe" Version 3, 29 June 2007 everything works again.

Anybody any clue? Are there new releases after this (apparently buggy) one of 20121210?

Thanks,

Gerrit
 
I installed it now on Windows 7 and compiled an example. It seems to work...
So, now I have the version:
Code:
c:\_mikrom\Work\gfortran_test>gfortran --version
GNU Fortran (GCC) 4.8.0 20121210 (experimental) [trunk revision 194364]
Copyright (C) 2012 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
It installs by default in
C:\Program Files (x86)\gfortran
 
Strange, maybe it has something to do with my compiler options:
Code:
gfortran -c -Wall -O3  ./MODULES/mod_01_module01.f90 -J./INCLUDES/ -I./INCLUDES/ -o ./OBJECTFILES/mod_01_module01.o

Both directories exist and in the old gfortran version this works perfectly
 
Btw, I found one problem, when I tried to compile the determinant example I posted last in this thread

Before, I compiled this example fine with an older gfortran compiler version, i.e.:
Code:
GNU Fortran (GCC) 4.4.0 20080603 (experimental) [trunk revision 136333]
Copyright (C) 2008 Free Software Foundation, Inc.

Now, with the newest version I get this errors:
Code:
determinant.f95:23.20:

    real, dimension(n-1, n-1) :: cofactor
                    1
Error: Variable 'n' cannot appear in the expression at (1)
determinant.f95:81.6:

  use matrix_functions
      1
Fatal Error: Can't open module file 'matrix_functions.mod' for reading at (1): N
o such file or directory

It seems that with the new compiler version some features of the supported language were forbidden ...
 
Gerrit, have you looked if your include directory which should be created by installer exists ?
In my case it's:
C:\Program Files (x86)\gfortran\include
 
I dump the *.mod files in the local directory "./INCLUDES"
This directory exists and it works with the older gfortran version.
What does the directory "C:\Program Files (x86)\gfortran\include" have to do with where I decide to dump my *.mod files?
 
I only thought that the message "Warning: Nonexistent include directory" could indicate, that the default directory "C:\Program Files (x86)\gfortran\include" doesn't exist.
 
Hm, that's a good point, sorry I didn't get that. To check that I'd have to uninstall the older version again and reinstall the new one (I'm a bit short in time for doing that right away, but may come back to that), however a simple program without modules (something like "hello world" or "goodbye gfortran") compiled okay with the new version.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top