delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/03/17:51:35

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-Authentication-Warning: eos.vss.fsi.com: ford owned process doing -bs
Date: Wed, 3 Dec 2003 16:51:13 -0600 (CST)
From: Brian Ford <ford AT vss DOT fsi DOT com>
X-X-Sender: ford AT eos
To: Cygwin List <cygwin AT cygwin DOT com>
cc: "Kooser, Ara S" <askoose AT sandia DOT gov>
Subject: Re: EOF error
In-Reply-To: <6.0.1.1.0.20031203171542.035047f0@127.0.0.1>
Message-ID: <Pine.GSO.4.58.0312031648540.28297@eos>
References: <9A4B2157EFDBE546BECD68C62AC3B1C8140073E9 AT es05snlnt DOT sandia DOT gov>
<6 DOT 0 DOT 1 DOT 1 DOT 0 DOT 20031203171542 DOT 035047f0 AT 127 DOT 0 DOT 0 DOT 1>
MIME-Version: 1.0

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019