Error? warning: this use of defined may not be portable

Hi, i dont know if this is the right place but,
i am trying to flash marlin on my 3d printer using arduino,
as i try to compile it near the end i get errors/warnings (pic1) and the ide slow down so much its unresponsive. any idea what im doing wrong?

(edit: it wont let me upload either)

pic1:

I do not know what you mean by

Posting screenshots of errors is usually a waste of time. as in this case.

Use the "Copy error messages" button in the IDE and post the full error message here

i tried to copy but the ide was un responsive

If you use the "Copy error messages" button in the IDE nothing appears to happen, but the error messages are copied to the clipboard ready to post here

Please try again and post the error message in code tags when you do

Looks like a Marlin pre-compile define

#define PIN_EXISTS(PN) (defined(PN ##_PIN) && PN ##_PIN >= 0)

see Error while compiling marlin.ino on arduino · Issue #12844 · MarlinFirmware/Marlin · GitHub

But not sure what the solution is :frowning:
Ok error is
Use of defined( ) may not be portable, so is the warning is probably correct.
But does that stop the compile for completing?

In the IDE preferences, set the compiler warnings to something other than ALL, that should get rid of the huge list of warnings.

the ide starts slowing down while compiling then when it completes its so slow it does not register any clicks (the app is still responding)

Happens to me sometimes also, without your warnings.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.