delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/11/26/17:13:30

X-Originating-IP: [200.34.143.16]
From: "J. L." <jlsgarrido AT hotmail DOT com>
To: <djgpp AT delorie DOT com>
References: <3DDFA0CA DOT 000009 DOT 03244 AT DELL> <Xns92CF728D3F9Aasu1cornelledu AT 132 DOT 236 DOT 56 DOT 8> <63b211f7 DOT 0211240900 DOT a1f0a57 AT posting DOT google DOT com> <Xns92D096DC170A6asu1cornelledu AT 132 DOT 236 DOT 56 DOT 8> <63b211f7 DOT 0211250711 DOT 7d6a37a5 AT posting DOT google DOT com> <OE494A6QlCWie55VI7o00002f38 AT hotmail DOT com> <63b211f7 DOT 0211261104 DOT 5ba122b AT posting DOT google DOT com>
Subject: Re: about: aout.exe
Date: Tue, 26 Nov 2002 14:25:30 -0600
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
Message-ID: <OE68j7u2MaOV7ssgAjo00007a48@hotmail.com>
X-OriginalArrivalTime: 26 Nov 2002 20:27:41.0238 (UTC) FILETIME=[44D12D60:01C2958A]
Reply-To: djgpp AT delorie DOT com

"Jonquil" <shayoom AT hotmail DOT com> wrote:

> > > > command lines:
> > > >
> > > > gcc -Wall -O2 hello.c -o hello.exe
> >      ^^^
> >
> > For C++ source, use instead
> >
> > gpp -Wall -O2 hello.c -o hello.exe
> >
> yes, i tried this line and i think its working here, well, im
not
> getting errors ;) .. but there is something that i dont
understand...
> i wrote that line in C:\CFILES\ thats where my programs are
located,
> and after pressing enter, it took like two seconds for the
computer to
> *read* the command line and then i just get C:\CFILES\> again,
as if
> it just created the hello.exe and not run it... is that whats
supposed
> to happen?

Yes.

>because i tried to open it manually by locating the
> hello.exe and rclicking on it. it opened and closed quickly.

Argh..., don't do this. Just type at command prompt

C:\CFILES\hello

>
> i have hello.cpp running as a project and it works fine, but i
want to
> understand the command the compiles and runs it right away.. i
thought
> it was cool.. so please, if you can clear things out for me,
that
> would be great.

The command line gpp ... just compile and link the program. You
*need* invoke your *exe*.

>
> thanks,
> Shaymaa
>

- Raw text -


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