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


At 05:01 PM 12/3/2003, Kooser, Ara S you wrote:
>Hello,
>
>  I am new to the list and using cygwin. I read through the other posts
>about EOF errors and I tried those solutions. But I am still having a
>problem. I am learning to program in fortran. I am using gcc to compile the
>following program:
>
>    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
>
>The program compiles but will not run when I type
>./projec
>
>It receive the following error:
>
>./projec: 124: Syntax error: EOF in backquote substitution
>
>If anyone can help that would be great.


This isn't a Cygwin-specific problem and, as such, is really off-topic 
for this list.  However, the solution to your problem is to compile and
link your program.  You created an object file only and named it 'projec',
which isn't going to run.  Remove '-c' to get an executable.



--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


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