![]() |
Error Undefined label 'None' (!) - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: Help & Support (https://www.boriel.com/forum/forumdisplay.php?fid=16) +---- Thread: Error Undefined label 'None' (!) (/showthread.php?tid=590) |
Error Undefined label 'None' (!) - programandala.net - 05-16-2014 Any clue what could cause the error "Undefined label 'None'"? It seems something missing is misinterpreted as a missing label?! I tried to find the wrong line with #line, but there are several #include and the error line changed without logic depending on the zones I commented out. Then I've created a debug version of the code, pasting all modules into their places instead of using #include. The same error happens, and also in different lines depending on the zones I comment out. So far I see no logic: the error line can be an "end asm" or a BASIC comment, an assembler comment or whatever. Thank you Re: Error Undefined label 'None' (!) - boriel - 05-18-2014 Can you post a code snippet here to reproduce the error? This looks like a compiler bug. Re: Error Undefined label 'None' (!) - programandala.net - 05-21-2014 boriel Wrote:Can you post a code snippet here to reproduce the error? This looks like a compiler bug. I'm not sure what part of the code causes the error, so I upload the whole file, in an attached zip archive. It's a library I'm writting to support the Plud D and DISCiPLE disk interfaces. This is what I get now: Quote:mgt.tmp.whole.zxbas:384: Error: Undefined label 'None' You see, that line is a BASIC comment in an empty SUB. If I add a PRINT after the second comment line, 385, the error happens at line 385! I did many tests but don't see any logic. Thank you. |