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 Merton College, Oxford.