Compile errors
Hello,
i tried to use Repetier on a 2560 with RAMPS and a 2004 display.
I get a lot of errors if i try to compile the downloaded firmware. Due to the character limit i only show the first apperance. Most either say that something is redifined, others that something is not defined in scope. What can i do?
In file included from sketch\Repetier.h:546:0,
from sketch\BedLeveling.cpp:107:
sketch\ui.h:1423:0: warning: "SDCARDDETECT" redefined
#define SDCARDDETECT -1
^
In file included from sketch\Repetier.h:198:0,
from sketch\BedLeveling.cpp:107:
sketch\Configuration.h:564:0: note: this is the location of the previous definition
#define SDCARDDETECT ORIG_SDCARDDETECT
^
In file included from sketch\Repetier.h:546:0,
from sketch\Commands.cpp:22:
sketch\ui.h:1423:0: warning: "SDCARDDETECT" redefined
#define SDCARDDETECT -1
^
In file included from sketch\Repetier.h:198:0,
from sketch\Commands.cpp:22:
sketch\Configuration.h:564:0: note: this is the location of the previous definition
#define SDCARDDETECT ORIG_SDCARDDETECT
^
In file included from sketch\Repetier.h:546:0,
from sketch\Communication.cpp:22:
sketch\ui.h:1423:0: warning: "SDCARDDETECT" redefined
#define SDCARDDETECT -1
^
In file included from sketch\Repetier.h:198:0,
from sketch\Communication.cpp:22:
sketch\Configuration.h:564:0: note: this is the location of the previous definition
#define SDCARDDETECT ORIG_SDCARDDETECT
^
In file included from sketch\Repetier.h:546:0,
from sketch\Drivers.cpp:1:
sketch\ui.h:1423:0: warning: "SDCARDDETECT" redefined
#define SDCARDDETECT -1
^
In file included from sketch\Repetier.h:198:0,
from sketch\Drivers.cpp:1:
sketch\Configuration.h:564:0: note: this is the location of the previous definition
#define SDCARDDETECT ORIG_SDCARDDETECT
^
In file included from sketch\Repetier.h:546:0,
from sketch\Eeprom.cpp:24:
sketch\ui.h:1423:0: warning: "SDCARDDETECT" redefined
#define SDCARDDETECT -1
^
In file included from sketch\Repetier.h:198:0,
from sketch\Eeprom.cpp:24:
sketch\Configuration.h:564:0: note: this is the location of the previous definition
#define SDCARDDETECT ORIG_SDCARDDETECT
^
In file included from sketch\Repetier.h:546:0,
from sketch\Extruder.cpp:22:
sketch\ui.h:1423:0: warning: "SDCARDDETECT" redefined
#define SDCARDDETECT -1
^
In file included from sketch\Repetier.h:198:0,
from sketch\Extruder.cpp:22:
sketch\Configuration.h:564:0: note: this is the location of the previous definition
#define SDCARDDETECT ORIG_SDCARDDETECT
^
In file included from sketch\Extruder.cpp:22:0:
sketch\Repetier.h:512:215: warning: narrowing conversion of '-1' from 'int' to 'const uint8_t {aka const unsigned char}' inside { } [-Wnarrowing]
#define ANALOG_INPUT_CHANNELS {EXT0_ANALOG_CHANNEL EXT1_ANALOG_CHANNEL EXT2_ANALOG_CHANNEL EXT3_ANALOG_CHANNEL EXT4_ANALOG_CHANNEL EXT5_ANALOG_CHANNEL BED_ANALOG_CHANNEL THERMO_ANALOG_CHANNEL KEYPAD_ANALOG_CHANNEL}
^
sketch\Extruder.cpp:44:47: note: in expansion of macro 'ANALOG_INPUT_CHANNELS'
const uint8 osAnalogInputChannels[] PROGMEM = ANALOG_INPUT_CHANNELS;
^
In file included from sketch\HAL.h:83:0,
from sketch\Repetier.h:539,
from sketch\Extruder.cpp:22:
sketch\Extruder.cpp: In static member function 'static void Extruder::initExtruder()':
fastio.h:36: error: 'DIOORIG_E2_DIR_PIN_DDR' was not declared in this scope
#define _SET_OUTPUT(IO) do {DIO ## IO ## _DDR |= MASK(DIO ## IO ## _PIN); } while (0)
^
sketch\fastio.h:56:26: note: in expansion of macro '_SET_OUTPUT'
#define SET_OUTPUT(IO) _SET_OUTPUT(IO)
^
sketch\Extruder.cpp:523:5: note: in expansion of macro 'SET_OUTPUT'
SET_OUTPUT(EXT2_DIR_PIN);
^
In file included from sketch\HAL.h:83:0,
from sketch\Repetier.h:539,
from sketch\Extruder.cpp:22:
fastio.h:36: error: 'DIOORIG_E2_DIR_PIN_PIN' was not declared in this scope
#define _SET_OUTPUT(IO) do {DIO ## IO ## _DDR |= MASK(DIO ## IO ## _PIN); } while (0)
^
sketch\fastio.h:17:30: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
sketch\fastio.h:56:26: note: in expansion of macro '_SET_OUTPUT'
#define SET_OUTPUT(IO) _SET_OUTPUT(IO)
^
sketch\Extruder.cpp:523:5: note: in expansion of macro 'SET_OUTPUT'
SET_OUTPUT(EXT2_DIR_PIN);
^
In file included from sketch\HAL.h:83:0,
from sketch\Repetier.h:539,
from sketch\Extruder.cpp:22:
fastio.h:36: error: 'DIOORIG_E2_STEP_PIN_DDR' was not declared in this scope
#define _SET_OUTPUT(IO) do {DIO ## IO ## _DDR |= MASK(DIO ## IO ## _PIN); } while (0)
^
sketch\fastio.h:56:26: note: in expansion of macro '_SET_OUTPUT'
#define SET_OUTPUT(IO) _SET_OUTPUT(IO)
^
sketch\Extruder.cpp:524:5: note: in expansion of macro 'SET_OUTPUT'
SET_OUTPUT(EXT2_STEP_PIN);
^
In file included from sketch\HAL.h:83:0,
from sketch\Repetier.h:539,
from sketch\Extruder.cpp:22:
fastio.h:36: error: 'DIOORIG_E2_STEP_PIN_PIN' was not declared in this scope
#define _SET_OUTPUT(IO) do {DIO ## IO ## _DDR |= MASK(DIO ## IO ## _PIN); } while (0)
^
sketch\fastio.h:17:30: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
sketch\fastio.h:56:26: note: in expansion of macro '_SET_OUTPUT'
#define SET_OUTPUT(IO) _SET_OUTPUT(IO)
^
sketch\Extruder.cpp:524:5: note: in expansion of macro 'SET_OUTPUT'
SET_OUTPUT(EXT2_STEP_PIN);
^
sketch\Extruder.cpp: In static member function 'static void Extruder::step()':
fastio.h:29: error: 'DIOORIG_E2_STEP_PIN_WPORT' was not declared in this scope
#define _WRITE(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
sketch\fastio.h:48:25: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
sketch\Extruder.cpp:1311:9: note: in expansion of macro 'WRITE'
WRITE(EXT2_STEP_PIN,START_STEP_WITH_HIGH);
^
fastio.h:29: error: 'DIOORIG_E2_STEP_PIN_PIN' was not declared in this scope
#define _WRITE(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
Comments