Re: beginner question...
From: Andrew Falanga (andy_at_spam.me.not)
Date: 02/03/04
- Next message: Matt: "Re: Inheritted copy constructor???"
- Previous message: Leor Zolman: "Re: Inheritted copy constructor???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 3 Feb 2004 10:28:33 -0700
On Mon, 05 Jan 2004 23:06:33 GMT
"Samuel Ackwonu" <samuel.ackwonu@chello.at> wrote:
> I have DJGPP and rhide.It works to compile a program but not to run it. why?
>
> I also have Dev C++. Compiling works too, but when I execute the program a
> DOS-window appears very shortly and finish. Do I have to use delay-command
> or is it something that is wrong?
>
> thx
> samu
>
>
Regarding DJGPP, if memory serves, it only compiles. You, actually have to execute the program. In other words, your source code goes in "source.c" and the compiler spits out "something" that you tell it too. The output file is usually specified on the command line. (I honestly have forgotten with DJGPP. I downloaded it once and used it...like...once. I normally program in UNIX or UNIX like systems, so I'm always using gcc.)
In reference to the second one, this has been asked here a lot. I don't have the FAQ address, but if you do a simple search on groups.google.com for the FAQ you'll find it. If memory serves, at the end of your program you have to put something like this (see code below):
int main(void) {
// doing stuff
fgetc(stdin); // at the end to pause so you can see
return 0;
}
HTH,
Andy
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
- Next message: Matt: "Re: Inheritted copy constructor???"
- Previous message: Leor Zolman: "Re: Inheritted copy constructor???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|