Welcome! Log In Create A New Profile

Advanced

error: expected unqualified-id before '[' token

Posted by papilio 
error: expected unqualified-id before '[' token
February 13, 2018 11:47PM
While attempting to configure a new MKS Gen v1.4 board on my AnyCubic Linear and updating to a more current version of Marlin, the latest of many problems I'm encountering is the following error while uploading the firmware,

In file included from sketch\Marlin_main.cpp:250:0:

planner.h:86: error: expected unqualified-id before '[' token

   int32_t steps[NUM_AXIS];                  // Step count along each axis

                ^

exit status 1
expected unqualified-id before '[' token


Sadly, with all of my messing around this evening I'm unable to recall what modification was made just prior to the appearance of the error -- any ideas where I might look?
Thank you!

- Michael
Re: error: expected unqualified-id before '[' token
February 14, 2018 03:01AM
Marlin_main.cpp:250:0:
Right there in Marlin_main.cpp line 250.

It often is a syntax error one line above, like a forgotten ";" or something stupid.
Re: error: expected unqualified-id before '[' token
February 14, 2018 03:15AM
Thanks so much for the reply o lampe!

Turns out that just ten minutes ago I discovered what happened -- while comparing various versions of my Marlin files in WinMerge I discovered that I'd inadvertently pasted "steps" (intended to paste into the FIND field) over a #define [value] in configuration.h.
Exhaustion causes all manner of insidious errors! eye rolling smiley

Edited 1 time(s). Last edit at 02/14/2018 03:36AM by papilio.
Sorry, only registered users may post in this forum.

Click here to login