Mail Archives: djgpp/2002/11/26/17:13:30
"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 -