Re: [cc65] Compile Problem

From: Karri Kaksonen <karri1sipo.fi>
Date: 2006-06-06 05:57:51
Ben Sinclair wrote:

> 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);
> }

I believe that you cannot have declarations like
int y = 1;
in the middle of the code block.

Try moving that line just after
int x = 1;

At least then it compiles for me.
--
Karri

----------------------------------------------------------------------
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:35:28 2006

This archive was generated by hypermail 2.1.8 : 2006-06-06 05:35:31 CEST