|
Post by bigbass on Feb 6, 2020 18:16:25 GMT 1
Hello Peter
this should be a simple one for you to solve using the latest bacon -v
BaCon version 4.0 on Linux armv7l - (c) Peter van Eerten - MIT License.
if I Add TRACE ON it wont compile ? or is it a problem with just my computer?
collect2: error: ld returned 1 exit status
INFO: see full error report (y/[n])? y /usr/bin/ld: test2.bac.o: in function `main': test2.bac.c:(.text+0x300c): undefined reference to `__b2c__getch' /usr/bin/ld: test2.bac.c:(.text+0x3054): undefined reference to `__b2c__getch' /usr/bin/ld: test2.bac.c:(.text+0x30e8): undefined reference to `__b2c__getch' /usr/bin/ld: test2.bac.c:(.text+0x317c): undefined reference to `__b2c__getch' /usr/bin/ld: test2.bac.c:(.text+0x3210): undefined reference to `__b2c__getch' /usr/bin/ld: test2.bac.o:test2.bac.c:(.text+0x326c): more undefined references to `__b2c__getch' follow collect2: error: ld returned 1 exit status make: *** [Makefile.bacon:4: test2] Error 1
TRACE ON is something I use a lot so I posted an official demo to show its not the code example
if you comment TRACE ON it compiles and runs fine
TRACE ON REM Testing BASIC compiler
PRINT "=============================" PRINT "Test 1: Testing FOR/NEXT/STEP" PRINT "=============================" PRINT
DECLARE x[5] TYPE int
PRINT "Counting up..." FOR x[1] = 1 TO 10 PRINT x[1], " - "; NEXT
PRINT PRINT
PRINT "Counting down..." FOR y = 10 TO 1 STEP -1 PRINT y NEXT y
thanks
Joe
|
|
|
Post by Pjot on Feb 6, 2020 18:30:28 GMT 1
Hi Joe,
This issue already is fixed in the beta from January 13.
Can you download and install the latest, and let me know if it works for you?
BR Peter
|
|
|
Post by bigbass on Feb 6, 2020 18:37:12 GMT 1
Hello Peter I am building again from fossil if you already fixed it all should be fine [f6720a5a86] Fix in function detection when TRACE is used. (user: peter tags: trunk) but will confirm it anyway after the build (takes some time) Thanks Joe
|
|
|
Post by vovchik on Feb 6, 2020 19:37:32 GMT 1
Dear Joe,
TRACE works fine on Raspbian Buster (pi4) using the latest beta. I hope it compiles and runs fine for you...
With kind regards, vovchik
|
|
|
Post by bigbass on Feb 6, 2020 20:35:37 GMT 1
Hello Peter and vovchik
it works now correctly thanks
|
|