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


On Wed, 3 Dec 2003, Larry Hall wrote:
> At 05:01 PM 12/3/2003, Kooser, Ara S you wrote:
> >I am learning to program in fortran. I am using gcc to compile the
> >following program:
> >
[snip]
> >
> >I compiled it with this command
> >
> >gcc -o projec -c projec.f
> >
> >The program compiles but will not run when I type
> >./projec
> >
>
> 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.
>
Since this *is* Fortran, it probably wouldn't hurt to use g77 instead of
gcc, too :).

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

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