www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/08/02:58:43

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.lang.c++,comp.os.msdos.djgpp
Subject: Re: CIN COUT
Date: Fri, 07 Mar 1997 22:26:31 -0800
Organization: Alcyone Systems
Lines: 19
Message-ID: <33210697.74A56646@alcyone.com>
References: <331BC0D5 DOT 5CB AT aracnet DOT com> <Pine DOT SUN DOT 3 DOT 91 DOT 970307162118 DOT 12355B-100000 AT john>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Lee James wrote:

> Try putting in the word   void     before main  It does help...

No, it wouldn't.  First, a main function returning void is non-ANSI -- main
must always return int (this is what he has it doing implicitly, although
he doesn't actually return a value).

Furthermore, if his problem is undefined references, then he has a linker
problem, which would have nothing to do with his choice of return type for
main.

-- 
       Erik Max Francis, &tSftDotIotE / email:  max AT alcyone DOT com
                     Alcyone Systems /    web:  http://www.alcyone.com/max/
San Jose, California, United States /    icbm:  37 20 07 N  121 53 38 W
                                   \
              "I am become death, / destroyer of worlds."
                                 / J. Robert Oppenheimer (quoting legend)

- Raw text -


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