Message-ID: <33B95552.7C88@traditor.fi> Date: Tue, 01 Jul 1997 12:06:58 -0700 From: Pauli Saksa 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(...) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk hi everyone! here's the source: #include 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