| delorie.com/archives/browse.cgi | search |
| Message-ID: | <33B95552.7C88@traditor.fi> |
| Date: | Tue, 01 Jul 1997 12:06:58 -0700 |
| From: | Pauli Saksa <ps AT traditor DOT fi> |
| Reply-To: | ps AT traditor DOT fi |
| Organization: | TRADITOR Ltd |
| MIME-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| Subject: | problems with void main(...) |
hi everyone!
here's the source:
#include <stdio.h>
void main(short argc)
{
printf("argc: %d", argc);
return;
}
and here's the compiler's messages:
In function `int main(...)':
warning: `return' with no value, in function returning non-void
so... could someone tell what I've done wrong?
I'm new to djgpp so there may be some defaults or something I
haven't noticed...
Thanks...
--
=Pauli Saksa -- ps AT traditor DOT fi
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |