delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/28/05:45:34

From: "Michael Stewart" <mike AT reggin DOT freeserve DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
References: <20000627192726 DOT 3930 DOT qmail AT hotmail DOT com>
Subject: Re: Djgpp
Lines: 68
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
X-Original-NNTP-Posting-Host: 212.49.235.21
Message-ID: <3959b5f9@news.server.worldonline.co.uk>
Date: Wed, 28 Jun 2000 09:25:20 +0100
NNTP-Posting-Host: 212.49.224.15
X-Trace: server12-lon1.london1.l3.net 962180602 212.49.224.15 (Wed, 28 Jun 2000 09:23:22 BST)
NNTP-Posting-Date: Wed, 28 Jun 2000 09:23:22 BST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> I am new on programming to C and i have been told that there is a free C
> compiler and not because it is free and because it is the best. As you
know
> that i am very new to C programming and very new to Djgpp too!
> I went surfing on the net about the Dhgpp but i didnt find nothing only
the
> page itself www.delorie.com/djgpp.

If you search for the "DJGPP webring" you should find a lot of other sites.
One list which is particulary good is maintained by SET at
http://www.geocities.com/SiliconValley/Vista/6552/dlinks.html

> I have a very big problem is that studying the Djgpp compiler is very hard
> so i learnt the main bits But there is a very very very big problem i
swear
> that no other compilers have it which makes djgpp so poor and bad for me
is
> that when i wright my code or source code for my new program and i want to
> run it first i must compile and run it but i always get this messege or
info
> messege that i cant run the code or let the compiler run it i get always
> this messege if i done everything right and it is:
> "Program Exit Code: 0 (0x0000)" ??????????

This is nothing to worry about. This is just the return value from your
program. If, for example, main() finished with "return 0;" like:

int main () {
   // other stuff
   return 0;
}

then you would receive the message that you did. While if you quit your
program with a value of "1" (indicating an error, maybe?) like:

int main () {
   // more stuff
   return 1;
}

would give you
"Program Exit Code: 1 (0x0001)"

> why do other programmers doesnt have this i dont know why maybe because of
> the program itself i thought that the compiler would run the source code
if
> u want but with Djgpp i cant i must just compile it into a program and
thats
> all i want to every compiler should be able to change the source codes
into
> the program or evry compiler would run its codes but with Djgpp in my Pc i
> get that above messege well i dont know why i went deleting and extracting
> back again the files and i have downloaded what is needed and done what it
> was told to do but well still i dont know what to do is it to find other
> compilers or stay with this Compiler which is i like most and refere most
i
> hope u may help me with that such of problem because i like this compiler
so
> so much and dont want to move to another one so please help me with that
> problem please ......

Don't worry about it, I personally find it to be a handy feature when
debugging programs.

Mike



- Raw text -


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