Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Content-type: text/plain; charset=us-ascii Note-from-DJ: This may be spam "Kooser, Ara S" 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/