www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/13/09:30:06

From: Robert Hoehne <Robert DOT Hoehne AT Mathematik DOT tu-chemnitz DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problem with DGJPP in RHIDE
Date: Thu, 13 Feb 1997 11:16:04 +0100
Organization: TU Chemnitz-Zwickau
Lines: 29
Message-ID: <3302E9E3.344A@Mathematik.tu-chemnitz.de>
References: <32fd0be4 DOT 2470442 AT news DOT ktb DOT net>
NNTP-Posting-Host: argv.hrz.tu-chemnitz.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

marsel AT ktb DOT net wrote:
> 
> says: Program exit code: -1(0xffffffff). Can anybody help me with it?

At first; This message informs you only about the return value from
your program. (If you have ever written a batch file, there it was
called ERRORLEVEL).

About the value -1 I can say, that there are several reasons to 
produce this.

1) Your program has somewhere an error produced, which results
   in a 'exit(-1)'. This may happen for a GPF for instance.

2) You have declared your main function as 'void main()' or you
   forgot to put an 'return VALUE;' statement and so
   the return value of that function (which is the exit code of
   your program when it runs normally) is undefined in a C program
   (in C++ the compiler generates automaticaly a return value 0).


Robert
-- 
*****************************************************************
* Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau *
* Post:    Am Berg 3, D-09573 Dittmannsdorf                     *
* e-Mail:  Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE              *
* WWW:     http://www.tu-chemnitz.de/~rho                       *
*****************************************************************

- Raw text -


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