lucienEn Posted December 27, 2022 Share Posted December 27, 2022 (edited) 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 December 27, 2022 by lucienEn Quote Link to comment Share on other sites More sharing options...
42bs Posted December 30, 2022 Share Posted December 30, 2022 What is in line 12 in stdlib.h ? Maybe adding "int" as return value is sufficient? Quote Link to comment Share on other sites More sharing options...
+karri Posted December 30, 2022 Share Posted December 30, 2022 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. Quote Link to comment Share on other sites More sharing options...
Fadest Posted December 30, 2022 Share Posted December 30, 2022 My "old" newcc65 is running fine on a Win 10 64 bits, and even Win 11 on my convention laptop IIRC. I will try to make an archive, but i don't know when (if not before monday, it will probably delayed by 1 week) Quote Link to comment Share on other sites More sharing options...
LordKraken Posted December 31, 2022 Share Posted December 31, 2022 newcc65_lynxdev.zipYou're welcome ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.