www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/01/03:09:37

Date: Sun, 1 Sep 1996 10:04:21 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Matthews <robmatthews AT netroute DOT net>
Cc: djgpp AT delorie DOT com
Subject: Re: HELP MEEEEEE!!!!
In-Reply-To: <01bb9627.474de9c0$146332cc@robmatthews>
Message-Id: <Pine.SUN.3.91.960901100319.21735B-100000@is>
Mime-Version: 1.0

On 30 Aug 1996, Matthews wrote:

> OK...here's my problem. I've really just started at this stuff (actually
> jsut got C++ today)...so here's my question. I did a program...a VERY
> SIMPLE program...straight from a book (yes I'm learning...I have to)...but
> it doesn't want to work. Here is what the program says:
> 
> #include <stdio.h>
> 
> void main()
> {
>   puts( "-------MY PROGRAM WORKS!------");
> }
> 
> And that's it...you think that it would work right...NOT REALLY! It keeps
> giving me an error saying:
> 
> Error: Function 'puts' should have a prototype in function main()

Please post the exact text of the error message.  That doesn't sound like 
a message that comes from gcc.

- Raw text -


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