z80 Development Kit
You are not logged in.
Hello List! ![]()
I am trying to use z88dk for an SD reader.
Version:
zcc - Frontend for the z88dk Cross-C Compiler
v2.58 (C) 22.6.2009 D.J.Morris
Getting straight to the core, this looks like legit C code to me:
void main()
{
struct filestruct
{
char name[13],
int size
} files[100];
//rest of code be hereBut the compiler trows:
sccz80:"bios.c" L:78 Warning:#17:Expected ';'
sccz80:"bios.c" L:78 Error:#45:Missing token, expecting } got s
sccz80:"bios.c" L:79 Warning:#17:Expected ';'
sccz80:"bios.c" L:79 Error:#27:Missing Open Parenthesis
Any ideas?
greetings,
Markus
------------------------------------------------------------------------------
Offline
struct filestruct
{
char name[13],
int size
} files[100];
For me there should be a semicolon ';' instead of the ',' comma after
"name[]".
Bodo
------------------------------------------------------------------------------
struct filestruct
{
char name[13],
int size
} files[100];For me there should be a semicolon ';' instead of the ',' comma after
"name[]".
Thanks Bodo, and whilst we're there, lets stick a semicolon afer size as well. ![]()
------------------------------------------------------------------------------
Offline