delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/04/09:08:03

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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-Lotus-FromDomain: COMPUTRITION
From: Fred_Smith AT computrition DOT com
To: cygwin AT cygwin DOT com
Message-ID: <85256DF2.004CB45F.00@cinote.computrition.com>
Date: Thu, 4 Dec 2003 09:02:52 -0500
Subject: Re: EOF error
Mime-Version: 1.0
Note-from-DJ: This may be spam


"Kooser, Ara S" <askoose AT sandia DOT gov> said:
>    PROGRAM TEMP
> *********************************************************
> *This program converts Celsius to Farenheit           *
> *                                *
> *The variable used is:                      *
> *  DEGC : degress celsius              *
> *********************************************************
>
>    REAL DEGC, DEGF
>    PRINT * , 'ENTER THE TEMPERATURE IN DEGRESS C:'
>         READ * , DEGC
>    DEGF = 9 / 5 * DEGC + 32
>    PRINT * , 'DEGRESS FARENHEIT:' , DEGF
>         END
>
> I compiled it with this command
>
> gcc -o projec -c projec.f


Besides the fact that this program does not produce correct results
(entering "-40" produces output of "-8" which certainly is incorrect), is
it also not an error to be trying to compile a FORTRAN program with gcc?
Should he not be using g77 instead?



-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed.If you have received this email in error please notify information_systems AT computrition DOT com.
Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Computrition, Inc. 
Finally, the recipient should check this email and any attachments for the presence of viruses. Computrition, Inc. accepts no liability for any damage caused by any virus transmitted by this email.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

--
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