From: "Colin W. Glenn" Newsgroups: comp.os.msdos.djgpp Subject: Re: "HELLO WORLD!" C++ Programming Error with Djgpp? Date: Sun, 9 Feb 1997 12:37:10 -0600 Organization: Greater New Orleans Free-Net Lines: 17 Message-ID: References: <32f55207 DOT 1140784 AT news DOT akula DOT com> <5dejs8$29l AT isis DOT fiu DOT edu> <32FCF752 DOT 5B08 AT cs DOT com> NNTP-Posting-Host: sparkie.gnofn.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <32FCF752.5B08@cs.com> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp On Sat, 8 Feb 1997, John M. Aldrich wrote: > > : void main() > void main() is an illegal construct under C++. main() MUST return an > integer. Period. The compiler should give you a warning about this if > you compile with '-Wall'. It's also extremely bad practice in C. Never thought about that, every program under DOS always returns an code, even if it's a 0. And in a like vein, they also recieve arguments, even if they might be NULL. The Light. A Christian Web Site! HotSpot