Welcome! Log In Create A New Profile

Advanced

Please help what did i do wrong?

Posted by Dschiri1 
Please help what did i do wrong?
August 03, 2017 08:25PM
I messed something up. It was compiling fine and now I get this error. If anyone is really good at marlin. Please look over. If you can give me some advice on how to find what i changed so I can fix it. It would greatly appreciated.

Here is the Error

Arduino: 1.8.3 (Windows 10), Board: "Sanguino, ATmega1284 or ATmega1284P (16 MHz)"

In file included from sketch\MarlinConfig.h:37:0,

from sketch\Marlin.h:36,

from sketch\Marlin_main.cpp:230:

sketch\temperature.h: In static member function 'static void Temperature::setTargetBed(int16_t)':

E:\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:92:25: error: expected primary-expression before ')' token

#define min(a,b) ((a)<(b)?(a)sad smileyb))

^

sketch\temperature.h:399:13: note: in expansion of macro 'min'

min(celsius, BED_MAXTEMP)

^

E:\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:92:33: error: expected primary-expression before ')' token

#define min(a,b) ((a)<(b)?(a)sad smileyb))

^

sketch\temperature.h:399:13: note: in expansion of macro 'min'

min(celsius, BED_MAXTEMP)

^

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

sketch\gcode.h: At global scope:

sketch\gcode.h:123:43: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]

static volatile bool seen(const char c) {

^

exit status 1
Error compiling for board Sanguino.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Re: Please help what did i do wrong?
August 04, 2017 03:01AM
It seems, there is something wrong with this line

...error: expected primary-expression before ')' token
#define min(a,b) ((a)<(b)?(a): (b))

Maybe your version of arduinoIDE doesn't support this code. Ask in Marlins github repo which IDE version to use.
Sorry, only registered users may post in this forum.

Click here to login