Mail Archives: djgpp/1996/09/01/03:09:37
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 -