tschak909 / diamond-gos-cc65

CC65 Bindings for writing Diamond GOS in C.
GNU General Public License v3.0
2 stars 1 forks source link

helloacc fails #6

Open polluks opened 1 year ago

polluks commented 1 year ago

https://github.com/cc65/cc65/blame/master/src/cc65/expr.c#L3126


/Applications/Xcode.app/Contents/Developer/usr/bin/make -C gos
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C hello
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C hello2
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C helloacc
cl65 -t atari -c --create-dep obj/atari/hi.d -Oris -I../gos -o obj/atari/hi.o src/hi.c
src/hi.c:22: Error: Cannot subscript
src/hi.c:24: Error: Cannot subscript
2 errors and 0 warnings generated.
make[1]: *** [obj/atari/hi.o] Error 1
make: *** [all] Error 2
tschak909 commented 1 year ago

I guess cc65 no longer allows blind array subscripting from just a pointer. ugh.

-Thom

On Sat, Aug 19, 2023 at 10:11 PM Stefan @.***> wrote:

/Applications/Xcode.app/Contents/Developer/usr/bin/make -C gos make[1]: Nothing to be done for all'. /Applications/Xcode.app/Contents/Developer/usr/bin/make -C hello make[1]: Nothing to be done forall'. /Applications/Xcode.app/Contents/Developer/usr/bin/make -C hello2 make[1]: Nothing to be done for `all'. /Applications/Xcode.app/Contents/Developer/usr/bin/make -C helloacc cl65 -t atari -c --create-dep obj/atari/hi.d -Oris -I../gos -o obj/atari/hi.o src/hi.c src/hi.c:22: Error: Cannot subscript src/hi.c:24: Error: Cannot subscript 2 errors and 0 warnings generated. make[1]: [obj/atari/hi.o] Error 1 make: [all] Error 2

— Reply to this email directly, view it on GitHub https://github.com/tschak909/diamond-gos-cc65/issues/6, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVBYZSDHU7XD2367BXUGJDXWF55VANCNFSM6AAAAAA3W7M54E . You are receiving this because you are subscribed to this thread.Message ID: @.***>

polluks commented 1 year ago

gcc also says "error: subscripted value is neither array nor pointer nor vector"