Path: chuka.playstation.co.uk!news From: Brian West Newsgroups: scee.yaroze.programming.codewarrior Subject: declaring variables Date: Sat, 21 Jun 1997 13:46:55 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 19 Message-ID: <33ABCD3F.9834F05@mail.globalnet.co.uk> NNTP-Posting-Host: client873d.globalnet.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.01 [en] (Win95; I) X-Priority: 3 (Normal) I was wondering if you could tell me while the following doesn't work in Codewarrior but works in VC++5/Watcom void main() { int a; a=5; int b; b=7; } this gives an unidentified declarator b error message unless I put 'int b;' after 'int a;' or I write 'int a,b;' It doesn't seem to like any staements being put in between declaring variables. Is this deliberate? PS I'm using the latest version of CodeWarrior.