Jump to content
IGNORED

cc65 issue


obschan

Recommended Posts

Hello,

 

I am trying myself to some lynx dev. following the http://www.classicga...r%27s_Reference documentation.

 

Sadly when I try to compile the first sample I am getting an awkward compilation error :

$ cc65 -t lynx main.c
/usr/local/lib/cc65/include/6502.h(117): Warning: Implicit `int' is an obsolete feature
/usr/local/lib/cc65/include/6502.h(117): Error: `)' expected
/usr/local/lib/cc65/include/6502.h(117): Error: `{' expected
...

 

I tried under linux: compiling cc65, the .deb package, under Windows the binaries, and a compiled version under cygwin.

I keep getting the same error.

I there something wrong with the latest cc65 or am I missing something there ?

 

Thank you.

Link to comment
Share on other sites

I had that error too when I compiled an older project with the latest snapshot. Luckily, I could just remove the included 6502.h header and it compiled. No idea what causes it though..

 

When I switched to an older version (2.13.2) the error dissapeared.

Link to comment
Share on other sites

I had that error too when I compiled an older project with the latest snapshot. Luckily, I could just remove the included 6502.h header and it compiled. No idea what causes it though..

When I switched to an older version (2.13.2) the error dissapeared.

 

Thank you Ninjabba, happy to see I am not the only one, did the same, got rid of the 6502.h

 

Can you post line 117 in 6502.h?

114 : typedef unsigned char (*irq_handler) (void);
115 : /* Type of the C level interrupt request handler */
117 : void __fastcall__ set_irq (irq_handler f, void *stack_addr, size_t stack_size);

Link to comment
Share on other sites

  • 8 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...