ATtiny1627 CuriosityNano - test of Arduino 6502 emulator + EhBasic - "implicit declaration of function" ERROR #578
Replies: 2 comments 6 replies
-
It shouldn't work anywhere. cpu.c calls getkey which is defined in the main sketch. It was skating by on account of Arduino's notoriously flaky function prototype generation would be my guess for why it didn't fail as it should have elsewhere. There should be a header with function declarations that is included by the ino and the c file, i'd say. |
Beta Was this translation helpful? Give feedback.
-
Sorry for the late reply , I have been in the midst of a very difficult move. I will try to take a look at this soon; I will have to fiddle with it. I can identify the general nature of the problem at a glance, but I can't identify exactly how to fix it without poking at it, and it's a fairly low priority since I have a critical bugfix release to do today for megaTinyCore (another one), need to finish unpacking my inventory to ship tindie orders with (thanks, by the way :-) ) but all that comes after making one of the last trips back to my old place to get the stuff that's still there before the landlord throws it away and bills us for disposal costs. |
Beta Was this translation helpful? Give feedback.
-
Hi, I today tested on few arduino boards this ino+c code: (zip download)
https://forum.arduino.cc/t/arduino-6502-emulator-basic-interpreter/188328
having fixed bug of nonexisting prog_uchar for "const unsigned char" as here:
https://forum.arduino.cc/t/gd2-h-329-27-error-prog_uchar-does-not-name-a-type/252021
It works OK on arduino leonardo and on sony spresense, but when I tried to compile this ino/c on tiny1627 CuriosityNano, this error was reported:
W:\~prj\211223-arduino-6502emu\arduino_6502\cpu.c: In function 'read6502': cpu.c:1060:15: error: implicit declaration of function 'getkey' [-Werror=implicit-function-declaration] tempval = getkey(); ^~~~~~ cpu.c:1061:5: error: implicit declaration of function 'clearkey'; did you mean 'clearzero'? [-Werror=implicit-function-declaration] clearkey(); ^~~~~~~~ clearzero
can you please peek whats wrong where? tnx
Beta Was this translation helpful? Give feedback.
All reactions