This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: EOF error



"Kooser, Ara S" <askoose@sandia.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@computrition.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]