Long..long time user of pbasic..very new to propbasic
denno
Posts: 223
I keep getting and error message in the following code: And, Bean...what is the latest propbasic version, I should be using?
The error code is:
PropBasic Version 00.01.44 Jul 13, 2014
Finished Compile. 37 Lines Read, 92 Lines Generated, 0 Warnings, 0 Errors.
Brads Spin Tool Compiler v0.15.3 - Copyright 2008,2009 All rights reserved
Compiled for i386 Win32 at 08:17:48 on 2009/07/20
Loading Object SIMPLE_BLINK_LED
Loading Object flash_16_LED.spin
flash_16_LED.spin(8,38) Error : Unresolved Symbol - __InitDi
The error code is:
PropBasic Version 00.01.44 Jul 13, 2014
Finished Compile. 37 Lines Read, 92 Lines Generated, 0 Warnings, 0 Errors.
Brads Spin Tool Compiler v0.15.3 - Copyright 2008,2009 All rights reserved
Compiled for i386 Win32 at 08:17:48 on 2009/07/20
Loading Object SIMPLE_BLINK_LED
Loading Object flash_16_LED.spin
flash_16_LED.spin(8,38) Error : Unresolved Symbol - __InitDi
DEVICE P8X32A, XTAL1, PLL16X XIN 5_000_000 flash_16_LED task flash_17_LED task flash_18_LED task LED_16 pin 16 output LED_17 pin 17 output LED_18 PIN 18 OUTPUT PROGRAM Start Start: COGINIT Flash_16_LED, 2 ' Start task in COG 2 COGINIT Flash_17_LED, 3 COGINIT Flash_18_LED, 4 TASK Flash_16_LED LOW LED_16 DO TOGGLE LED_16 PAUSE 100 LOOP TASK Flash_17_LED LOW LED_17 DO TOGGLE LED_17 PAUSE 100 LOOP TASK Flash_18_LED LOW LED_18 DO TOGGLE LED_18 PAUSE 100 LOOP END
Comments
You will find it attached to the first post in this thread:
http://forums.parallax.com/discussion/168744/download-propbasic-version-1-48-aug-9-2018-here
When compiling, the generated spin file for each task does not include long definition for __InitDirA.
(main .spin does, but not the tasks)
@Bean @Mickster Sorry to tag you, but any ideas on what to try? I'm going to grab an older propbasic.exe to test in a moment.
Compiled TASK file
Compiled MAIN file
When posting code, could you use the code tags please?
They make things easier to read, and easier to copy paste your code for testing.
I've edited you first post to include the tags, so you can see how they work.
To get the tags, click the C on the post top-bar, or manually type [ code ][ /code ] around your code.
ps. Should be NO spaces inside those square brackets....
PropBasic 1.44 is the oldest I could find, and that fails the same way. (OP was using that version too!)
I tried a simpler code snippet, taken from PropBasic.pdf, and that has the same issue.
Anyone got an older PropBasic executable to try?
Same error with version 1-42.
Might be something up with the code snippet... Not seeing it right now, but perhaps I'll take a look again later.
-Mike R...
@denno code also had END in the wrong place- here's the edited code with both fixes:
Updated documents files now on Github: https://github.com/parallaxinc/PropBASIC/tree/master/doc
Good call! An extra set of eyes always helps.
Make them un-hidden, then renaming files will be easier.
Google "hide file extensions for known file types"
Another option is download the .exe direct from Github. I posted the link in your other thread.