Re: How to compile Fortran 90 subroutine under CYGWIN

2010-05-21 Thread Tim Prince
On 5/21/2010 1:55 PM, bo yu wrote: (5) Tim mentioned that 'You should persuade the Makefile to use the Fortran compiler rather than gcc for compiling and linking Fortran source code. g77 and gfortran can handle .c files automatically'. From the original makefile, which works well as shown in C

RE: How to compile Fortran 90 subroutine under CYGWIN

2010-05-21 Thread bo yu
Tim and Marco, Thanks for your replies and for your help. Under the ygwin, I can build codes in .c and .f (Fortran-77) format, as shown in following Case 1. Now, I have codes in .f90 (Fortran-90) format and need a coupling. My goal is to build all codes (.c, .f, .f90) togheter in cygwin. As T

RE: How to compile Fortran 90 subroutine under CYGWIN

2010-05-21 Thread Marco Atzeri
--- Ven 21/5/10, bo yu ha scritto: > Tim, > > Thanks for your reply. > > I have the new version of cygwin installed in my computer, > in which the g77, g++, gcc, gfortran, C++ compiler are in > C:\cygwin\bin. > > Firstly, I use cygwin build C programs and For77 programs. > It works very well

Re: How to compile Fortran 90 subroutine under CYGWIN

2010-05-21 Thread Tim Prince
On 5/21/2010 8:21 AM, bo yu wrote: Tim, Thanks for your reply. I have the new version of cygwin installed in my computer, in which the g77, g++, gcc, gfortran, C++ compiler are in C:\cygwin\bin. Firstly, I use cygwin build C programs and For77 programs. It works very well. Now, I add two For

RE: How to compile Fortran 90 subroutine under CYGWIN

2010-05-21 Thread bo yu
mail.com > Date: Fri, 21 May 2010 05:44:43 -0700 > From: n...@aol.com > To: cygwin@cygwin.com > Subject: Re: How to compile Fortran 90 subroutine under CYGWIN > > On 5/21/2010 5:37 AM, bo yu wr

Re: How to compile Fortran 90 subroutine under CYGWIN

2010-05-21 Thread Tim Prince
On 5/21/2010 5:37 AM, bo yu wrote: .c.o : $(H_SOURCES) $(CC) -c $(CFLAGS) $< .f.o: ${F77} -c ${FFLAGS} $< Here is the code of ‘Testfor90.f90’ -- m