[cc65] Arrays of structs

From: Mike Hawkey <hawk1myplace.net.au>
Date: 2005-08-16 14:38:45
Hi All,

I've been playing with CC65 for a little while, and am just starting to 
try and get something more functional.  Anyway, my problem is as follows:
I get the following error s when I compile the code below

E:\ATARI\DEV\DEMO1\MAP.C(68): Error: `]' expected
E:\ATARI\DEV\DEMO1\MAP.C(68): Error: Identifier expected
E:\ATARI\DEV\DEMO1\MAP.C(68): Error: `;' expected
E:\ATARI\DEV\DEMO1\MAP.C(68): Error: Identifier expected

Now I'm sure I've used this method with other compilers, but that 
doesn't mean that it's valid for this compiler.

Am I exceeding the limitations of this compiler?

Thanks,
Mike.

=== Code Start ===

typedef		char		UINT8;

typedef struct sTile
{
     UINT8   nw;
     UINT8   nnw;
     UINT8   nne;
     UINT8   ne;
     UINT8   sw;
     UINT8   ssw;
     UINT8   sse;
     UINT8   se;
} tTile;

#define NUM_OF_TILES        32

#define MAP_WIDTH_TILES     64
#define MAP_HEIGHT_TILES    64

tTile   gTile[NUM_OF_TILES];
UINT8   gMap[MAP_WIDTH_TILES, MAP_HEIGHT_TILES];

=== Code Stop ===
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Aug 16 14:33:57 2005

This archive was generated by hypermail 2.1.8 : 2005-08-16 14:34:00 CEST