I'm new to cc65 and am having trouble compiling some code. I've narrowed it down to this example, which doesn't compile: int main(void) { int x = 1; x = 2; int y = 1; y = 2; return(0); } [ben@narkon.fleeno.net]:(~/life)$ cl65 --static-locals -t apple2enh test.c test.c(5): Error: Expression expected test.c(5): Warning: Statement has no effect test.c(5): Error: `;' expected test.c(5): Error: Expression expected test.c(5): Warning: Statement has no effect test.c(5): Error: `;' expected test.c(5): Error: Expression expected test.c(5): Warning: Statement has no effect test.c(5): Error: `;' expected test.c(5): Error: Expression expected test.c(5): Warning: Statement has no effect test.c(5): Error: `;' expected test.c(5): Error: Expression expected test.c(5): Warning: Statement has no effect test.c(5): Error: `;' expected test.c(5): Error: Expression expected test.c(5): Fatal: Too many errors I can't seem to figure out what the problem is. Does anyone have any suggestions? -- Ben Sinclair ben@bensinclair.com ---------------------------------------------------------------------- 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 Jun 6 05:12:42 2006
This archive was generated by hypermail 2.1.8 : 2006-06-06 05:12:45 CEST