Jump to content
IGNORED

Latest CC65 does not compile old Lynx code anymore


lucienEn
 Share

Recommended Posts

Hi, after more than a decade I thought I'll compile my old Lynx game but noticed the super old cc65.exe copy I have does not run anymore on 64-bit windows.

So I downloaded latest cc65.exe but that gives compile errors for the standard header files. Any idea how to fix this? E.g.:

 

\arcmenu>cc65 -ILynxDev\CR\INCLUDE arcmenu.c
LynxDev\CR\INCLUDE/stdlib.h:12: Warning: Implicit 'int' return type is an obsolete feature
LynxDev\CR\INCLUDE/stdlib.h:13: Warning: Implicit 'int' return type is an obsolete feature
LynxDev\CR\INCLUDE/stdlib.h:14: Warning: Implicit 'int' return type is an obsolete feature
LynxDev\CR\INCLUDE/stdlib.h:15: Warning: Implicit 'int' return type is an obsolete feature
LynxDev\CR\INCLUDE/stdlib.h:16: Warning: Implicit 'int' return type is an obsolete feature
LynxDev\CR\INCLUDE/stdlib.h:17: Warning: Implicit 'int' return type is an obsolete feature
LynxDev\CR\INCLUDE/stdlib.h:19: Warning: Implicit 'int' return type is an obsolete feature

...

LynxDev\CR\INCLUDE/../runtime/global.m65:1: Error: Preprocessor directive expected
LynxDev\CR\INCLUDE/stdlib.h:56: Warning: Implicit 'int' return type is an obsolete feature
LynxDev\CR\INCLUDE/../runtime/global.m65:4: Warning: Implicit 'int' is an obsolete feature
LynxDev\CR\INCLUDE/../runtime/global.m65:4: Error: ';' expected
...

 

arcmenu.c:

#include "lynx2.h"
#include <lynxlib.h>
#include "loader.h"
...

 

Thanks!

Lucien

Edited by lucienEn
Link to comment
Share on other sites

Well, actually the compiler is the newcc65. And it appers to cast int's to pointers both ways. So it just does not run on 64 bit systems.

 

As the code is mainly #asm blocks it is a bit hard to port to the modern cc65 variant.

 

The problem comes from extra attributes not known to cc65 Like unsigned char something at $FF00;

 

If someone has a newcc65 that runs on 64 bit machines I am sure Lucien would appreciate it.

Link to comment
Share on other sites

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...
 Share

  • Recently Browsing   0 members

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