www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/01/19:29:52

Message-ID: <322A3682.5FCE@gbrmpa.gov.au>
Date: Mon, 02 Sep 1996 09:21:06 +0800
From: Leath Muller <leathm AT gbrmpa DOT gov DOT au>
Reply-To: leathm AT gbrmpa DOT gov DOT au
MIME-Version: 1.0
To: Matthews <robmatthews AT netroute DOT net>
CC: djgpp AT delorie DOT com
Subject: Re: HELP MEEEEEE!!!!
References: <01bb9627.474de9c0$146332cc AT robmatthews>

> #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()
 
Hmmm...interesting... :)  I always thought that puts was defined in the
stdlib...I use puts all the time, and I always have stdlib included,so
if you include that header, it should work fine... :)
(Sorry if I am a little late on this one...)

Leathal.

- Raw text -


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