PDA

View Full Version : Error while compiling



BobK
- 20th April 2013, 16:09
Good morning all!

While updating an old program I encountered the following message:

ERROR: Macro SUB?BCL not found in macro file.

As far as I know I don't have any macros but maybe PBP creates them. How do I correct this?

Using a 18F452

Using MCSPlus 2.2.1.1 and PBP 2.50C (yes I have PBP 3.0)

Thanks in advance for any help?

BobK
- 20th April 2013, 17:01
Hello again,

My code section was this:

Serin2 serpin,36081,250,Main,[Wait("A"),DEC3 Apt, dec1 Event] '4/20/13 New changes
BusyOut = 1
pause 10

if Event = 1 then DispAlarm1
if Event = 2 then DispAlarm2
If Event - 3 then PrntRestore

This line: (If Event - 3 then PrntRestore) should have been (If Event = 3 then PrntRestore)

The error was having a - instead of =.

Problem solved by going back and slowly putting the previously changed code back in piece by piece and testing
each change.

Have a nice day!

BobK