delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/26/19:36:34

X-Spam-Check-By: sourceware.org
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: RE: Fortran Compiler Error CMBFAST
Date: Tue, 27 Jun 2006 09:35:15 +1000
Message-ID: <026DCC31AB859648A6F16C0E5CD2580D736898@calttsv025.cal.riotinto.org>
From: "Billinghurst, David \(CALCRTS\)" <david DOT billinghurst AT comalco DOT riotinto DOT com DOT au>
To: "Brad Krane" <brad DOT krane AT gmail DOT com>,
"Cygwin General List" <cygwin AT cygwin DOT com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k5QNaXwX015034

> 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 and
> never run up on a similar problem. I think that it is a compiler
> specific issue or an environment one.
> 
> f77 -O2   -c -o jlgen.o jlgen.F
> jlgen.F: In program `jlgen':
> jlgen.F:14:
>          include 'cmbfast.inc'
>          ^
> Unable to open INCLUDE file `cmbfast.inc' at (^)
> jlgen.F:18:
>          integer l(lmax),i,j,lmo
>                    ^
> Invalid declaration of or reference to symbol `lmax' at (^) [initially
> seen at (^)]
> jlgen.F:18:
>          integer l(lmax),i,j,lmo
>                  1
> jlgen.F:21: (continued):
>          common /lvalues1/ l,l0,lmo
>                            2
> Invalid declaration of or reference to symbol `l' at (2) 
> [initially seen at (1)]

Brad,

This is not really a cygwin problem.  

The compiler can't find the file cmbfast.inc.  Perhaps:
 - copy the file into the same directory as jlgen.F, or
 - point to it with the -I compiler directive


NOTICE
This e-mail and any attachments are private and confidential and may contain privileged information. If you are not an authorised recipient, the copying or distribution of this e-mail and any attachments is prohibited and you must not read, print or act in reliance on this e-mail or attachments.
This notice should not be removed.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019