delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/24/16:20:11

Date: Tue, 24 Jun 1997 16:16:28 -0400 (EDT)
From: "Art S. Kagel" <kagel AT ns1 DOT bloomberg DOT com>
To: dabrownz AT mindspring DOT com
Cc: djgpp AT delorie DOT com
Subject: Re: My second function doesn't work (stupid newbie question)
In-Reply-To: <33ac9f87.20873600@news.mindspring.com>
Message-Id: <Pine.D-G.3.91.970624161235.85D-100000@dg1>
Mime-Version: 1.0

On Sun, 22 Jun 1997 dabrownz AT mindspring DOT com wrote:

> DJGPP keeps telling me that there is something wrong with my second
> function.  I don't see why.  Please help, I'm a stupid newbie and I'll
> appriciate any help (the answer is probably right under my nose)
> 
> float main()
> {

I do not see anything wrong with the second function either, the exact 
error message might help here.   However, main() CANNOT BE DECLARED 
ANYTHING OTHER THAN:

int main( void )    /* OR in C++: int main() */

OR

int main( int argc, char **argv );

Perhaps the "float main()" is the problem.  

Please post the exact error message.

Art S. Kagel, kagel AT bloomberg DOT com

- Raw text -


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