www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/09/19:45:56

From: Endlisnis <s257m AT unb DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Why doesn't C++ work!?!?!
Date: Wed, 09 Sep 1998 19:22:59 -0300
Organization: NBTel Internet
Lines: 17
Message-ID: <35F6FFC3.86451453@unb.ca>
References: <Pine DOT A32 DOT 3 DOT 91 DOT 980904133822 DOT 79390B-100000 AT broncho DOT ucok DOT edu> <35F04DC0 DOT EFB0B348 AT unb DOT ca> <35F0B4D0 DOT 91F4A0F8 AT cartsys DOT com> <35f37423 DOT 319246 AT news DOT uow DOT edu DOT au>
NNTP-Posting-Host: fctnts10c05.nbnet.nb.ca
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Brett Porter wrote:
> >> Also, DJGPP by default returns 0 if nothing is specified. (at
> >> least in main it does).
> >Does it really?  I haven't seen that.  Do you have evidence to support
> >it?
> I know for sure it doesn't, unless RHIDE is playing tricks on me. I've
> been getting return codes that are almost random in the dialog box
> after termination when I forget return 0;
	You were probably compiling C code, C++ code automatically returns 0 if no
return statement appears.
-- 
     (\/) Endlisnis (\/)
          s257m AT unb DOT ca
          Endlisnis AT GeoCities DOT com
          Endlis AT nbnet DOT nb DOT ca


- Raw text -


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