2lss
Full Member
Posts: 140
|
Post by 2lss on Nov 9, 2010 4:06:26 GMT 1
I noticed yesterday that there is a version 25 of Hug (I have been using v24). So I replaced my old version and tried to compile the project I was working on. However immediately after starting the conversion, bacon threw an error:
Starting conversion... 33 ERROR: could not parse line 33 in file 'hug.bac'!
Thinking there was an error in my project, I tried compiling something simple like this example:
SETENVIRON "LANG", "C"
INCLUDE "hug.bac"
SUB populate_list(NUMBER widget, long* data)
variable$ = (STRING)*data
PRINT variable$
END SUB
CONST wintitle$ = "test" mainwin = WINDOW(wintitle$, 800, 390)
frame1 = FRAME(780, 70) ATTACH(mainwin, frame1, 10, 10)
button = BUTTON("test button", 110, 50) ATTACH(mainwin, button, 20, 20)
data$ = "TEST WORKS" CALLBACKX(button, populate_list, ADDRESS(data$))
SYNC
DISPLAY
But I still got the same error. I then tried rolling back to bacon version 18 but still had the same results. Here is a list of what I tried: bacon (bacon version) v19 bacon (bash version) v19 bacon (bacon version) v18
All had the same result with Hug v25. If I use version 24, there are no problems. Also tried multiple versions of Hug v25 to rule out a copy/paste issue.
I compared the two hug files, but don't see anything that would cause a problem. Any ideas?
|
|
|
Post by Pjot on Nov 9, 2010 10:58:53 GMT 1
Hi 2lss, Well, no problems here - I can compile v.025 with the BASH and BaCon versions. But I will tell you a secret: of all programs on the BaCon website there is also a plain '.bac' version. So for HUG, we also have a plain .bac file available. Can you try to directly download this file and see if it works? That way any cut&paste issue is excluded. Of course also make sure you use the latest BASH or BaCon version? BR, Peter
|
|
2lss
Full Member
Posts: 140
|
Post by 2lss on Nov 9, 2010 22:25:24 GMT 1
Yep that was the problem wget http://www.basic-converter.org/hug.bac Does the trick. I'm not sure what issue is, but I will download the file rather than cut/paste from now on.
|
|