getting "unreachable" error msg

Questions about the BASICtools and MakeItC
Post Reply
ctkilian
Posts: 9
Joined: Fri Feb 20, 2015 2:31 pm

getting "unreachable" error msg

Post by ctkilian »

I just installed the latest Basictools on my Windows 10 PC. Everything had been working fine on my old XP machine (which just kicked the bucket), so I was surprised when I went to run the same programs on my new setup and all I get is "unreachable statement" errors on all my statements. I am using Notepad+. Simple programs do work when I type them in on the "Enter" line. I



basicchip
Posts: 1090
Joined: Fri Oct 19, 2012 2:39 am
Location: Weeki Watchee, FL
Contact:

Re: getting "unreachable" error msg

Post by basicchip »

The compiler expects to see a main: or sub or function or label:at the beginning of the program

When you type in line by line, a dummy label is inserted before your typing

This added to flag statements before a main that would never get executed

If you really have no main, sub or functions in your program, insert a label or main: as your first statement

Post Reply