RE: Fortran Compiler Error CMBFAST

2006-06-28 Thread Williams, Gerald S \(Jerry\)
Igor Peshansky wrote: > Doesn't foo.F represent a FORTRAN file that needs to be preprocessed > by the C preprocessor? Changing foo.F to contain > > #include "foo.inc" > > makes it work for me. That is no doubt the difference. As I said, I don't use FORTRAN enough to know what others would expec

RE: Fortran Compiler Error CMBFAST

2006-06-27 Thread Igor Peshansky
On Tue, 27 Jun 2006, Williams, Gerald S (Jerry) wrote: > I just recreated the problem with some minimal code, > and got some more information in the process: > > Create a file "foo.for" that contains one line: > include 'foo.inc' > > Create an empty file named foo.inc in the same > directo

RE: Fortran Compiler Error CMBFAST

2006-06-27 Thread Williams, Gerald S \(Jerry\)
Dave Korn wrote: > We *need* to see the actual command line. That was in the original post (sorry, I should have made sure it was included in the text when I CC'ed you...): > f77 -O2 -c -o jlgen.o jlgen.F The command was being executed from the same directory as jlgen.F, which also contains

Re: Fortran Compiler Error CMBFAST

2006-06-27 Thread Brad Krane
Yes I forgot to mention that the include file that the compiler could not find was in the working directory. Adding a -I./ to the flags has seemed to solve this. On 6/26/06, Williams, Gerald S (Jerry) <[EMAIL PROTECTED]> wrote: Brad Krane wrote: > I'm trying to compile the scientific package CM

RE: Fortran Compiler Error CMBFAST

2006-06-27 Thread Dave Korn
On 27 June 2006 14:41, Williams, Gerald S (Jerry) wrote: > Billinghurst, David (CALCRTS) wrote: >> This is not really a cygwin problem. > > I guess you didn't see my post--if the compiler should be > able to find an include file in the same directory as the > source file (and/or the current direc

RE: Fortran Compiler Error CMBFAST

2006-06-27 Thread Williams, Gerald S \(Jerry\)
Billinghurst, David (CALCRTS) wrote: > This is not really a cygwin problem. I guess you didn't see my post--if the compiler should be able to find an include file in the same directory as the source file (and/or the current directory, since they are the same in this case), then it is a cygwin prob

RE: Fortran Compiler Error CMBFAST

2006-06-26 Thread Billinghurst, David \(CALCRTS\)
> From: Brad Krane > > I'm trying to compile the scientific package CMBFAST-4.5.1 in the > cygwin environment using g77. I get the following error and I have no > idea how to fix this having never used Fortran before. This should > work without any problem as many other people have compiled this a

RE: Fortran Compiler Error CMBFAST

2006-06-26 Thread Williams, Gerald S \(Jerry\)
Brad Krane wrote: > I'm trying to compile the scientific package CMBFAST-4.5.1 in the > cygwin environment using g77. I get the following error... > > f77 -O2 -c -o jlgen.o jlgen.F > jlgen.F: In program `jlgen': > jlgen.F:14: > include 'cmbfast.inc' > ^ > Unable to open INCLUDE f

Re: Fortran Compiler Error CMBFAST

2006-06-25 Thread Tim Prince
Brad Krane wrote: I'm trying to compile the scientific package CMBFAST-4.5.1 in the cygwin environment using g77. I get the following error and I have no idea how to fix this having never used Fortran before. This should work without any problem as many other people have compiled this and never r