Re: Gfortran on Windows (was Re: Fortran Newbie - Where to start?)
From: E P Chandler (epc8_at_juno.com)
Date: 08/21/04
- Next message: Ken Plotkin: "Re: How to understand another's program?"
- Previous message: James Giles: "Re: Fortran Newbie - Where to start?"
- Maybe in reply to: bud davis: "Re: Gfortran on Windows (was Re: Fortran Newbie - Where to start?)"
- Next in thread: E P Chandler: "Re: Gfortran on Windows (was Re: Fortran Newbie - Where to start?)"
- Reply: E P Chandler: "Re: Gfortran on Windows (was Re: Fortran Newbie - Where to start?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 20 Aug 2004 19:13:37 -0700
"beliavsky@aol.com" wrote:
> Gfortran, the other open source Fortran 95 project, now runs on Windows,
> according to http://f77.linksysnet.com/ . I don't know how to install it.
> When I download gfortran.exe from http://gfortran.org/cygwin/2004232/gfortran/bin/
> and run gfortran.exe from the command line, I get the error message
>
> "The procedure entry point __getreent could not be located in the dynamic
> link library cygwin1.dll"
>
> I have cygwin1.dll in my path at c:\windows. I cannot install the latest
> Cywgin from http://sources.redhat.com/cygwin/ because (I think) of the corporate
> firewall.
>
Can you use the normal Cygwin setup.exe from http://www.cygwin.com ?
a more recent URL for gfortran is http://gfortran.org/
and you can obtain the package from
http://gfortran.org/cygwin/20040804/gfort0804.zip
The latest version seems to require
1) base cygwin
2) binutils & gcc from devel
3) gmp from libs (An earler snapshot today did not.)
After unpacking the .zip file and adding the paths to the root of the
unpacked .zip and to \cygwin\bin, I was able to compile and execute a
simple 'hello, world' program without any problem.
-------
A minimal test setup to compile 'hello, world' which also worked for
me was:
1) install base cygwin + devel/binutils + devel/gcc + libs/gmp
copy to working directory (eg. \temp)
from \cygwin\bin:
as.exe
ld.exe
cygiconv-2.dll
cygintl-2.dll
cygwin1.dll
cyggmp-3.dll
from http://gfortran.org/cygwin/20040804/irun
/bin/gfortran.exe
/lib/libfortran.a
/lib/libgfortranbegin.a
/lib/gcc/i686-pc-cygwin/3.5.0/libgcc.a
/libexec/gcc/i686-pc-cygwin/3.5.0/f951.exe
of course hello.f95 is just
print *,'hello, world'
end
then from \temp directory do:
gfortran -s -o hello.exe -L. hello.f95
Hope this helps (I like to test things with as little installed as
possible.)
(-s reduces the size of the .exe file, -L. sets the library directory
to the current directory).
- Next message: Ken Plotkin: "Re: How to understand another's program?"
- Previous message: James Giles: "Re: Fortran Newbie - Where to start?"
- Maybe in reply to: bud davis: "Re: Gfortran on Windows (was Re: Fortran Newbie - Where to start?)"
- Next in thread: E P Chandler: "Re: Gfortran on Windows (was Re: Fortran Newbie - Where to start?)"
- Reply: E P Chandler: "Re: Gfortran on Windows (was Re: Fortran Newbie - Where to start?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|