www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/26/05:30:54

From: gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: strange thing with exit(0)
Date: 26 Feb 1997 03:34:33 GMT
Organization: Oxford University
Lines: 18
Message-ID: <5f0b09$8fn@news.ox.ac.uk>
References: <199702252042 DOT VAA04335 AT ernie DOT icslab DOT agh DOT edu DOT pl>
NNTP-Posting-Host: mc31.merton.ox.ac.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

chojnacki (s709 AT ernie DOT icslab DOT agh DOT edu DOT pl) wrote:
: I use gcc version 2.6.3 and go32 version 1.12 maint4
: and work on DOS 7.0 (Windows 95 MS-DOS mode).

Yuck. You should really upgrade to version 2.01 - it has many many
improvements.

: In WINDOWS MS-DOS BOX it works always fine.

I think this implies that your program is fine under DPMI, in which
case upgrading to v2.01 should fix everything.

Re your code, you should change the return type of the function 
"main" to "int", and use "return" instead of "exit".

-- 
George Foot <gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk>
Merton College, Oxford.

- Raw text -


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