Having issues during compile for Mega2560 r3


OK, Downloaded the GIThub application for windows 7 and got the correct files! No more illegal embedded characters!
Sorry this is all new to me so if someone could point me in the right direction it would be greatly appreciated.
When I compile ulisp using the Arduino IDE 1.8.6 I get the following errors.


Arduino: 1.8.6 (Windows 7), Board: "Arduino/Genuino Uno"

C:\Users\TheMan\Documents\Arduino\ulisp\ulisp.ino: In function 'object* myalloc()':

ulisp:187:44: error: 'error' was not declared in this scope

   if (Freespace == 0) error(PSTR("No room"));


This is a problem that seems to have appeared with the latest version of the Arduino IDE. The fix is to locate the comment:

// Forward references

and insert the following two lines after it:

void error (PGM_P string);
void pfstring (PGM_P s, pfun_t pfun);

This fix will be incorporated in the next release.

Explanation: normally the Arduino IDE automatically resolves forward references to functions that are defined later in the file, but for some reason it has stopped working for these two references.


Hi Mark,

Did that resolve your problem?

Regards, David


Yes, That works. Thanks!