MKFirmware / MK4duo

MK4duo Firmware Printers 3D for Arduino and Arduino due
http://www.marlinkimbra.it
GNU General Public License v3.0
206 stars 117 forks source link

MK4Duo, TMC26XStepper conflict error, please help please head off doing so #758

Closed butte22 closed 4 years ago

butte22 commented 4 years ago

I was using MK4duo 4.3.5 without any errors. I switched to MK4Duo version 4.3.9, but I'm getting an error. There is a conflict between TMC26xstepper library and driver.h library. Please help someone as soon as possible.

THE ERRORS THAT MK4DUO GIVES ARE:

Severity Code Description Project File Line Error 156:16: error: 'driver' has a previous declaration as 'Driver* driver [13] C:\Desktop\MK4Duo\src\core\stepper\driver\driver.h 156

Severity Code Description Project File Line Error 156:16: error: 'driver' has a previous declaration as 'Driver* driver [13] C:\Desktop\MK4Duo\src\core\stepper\driver\driver.h 156

Severity Code Description Project File Line Error 156:16: error: 'driver' has a previous declaration as 'Driver* driver [13] C:\Desktop\MK4Duo\src\core\stepper\driver\driver.h 156

Severity Code Description Project File Line Error 156:16: error: 'driver' has a previous declaration as 'Driver* driver [13] C:\Desktop\MK4Duo\src\core\stepper\driver\driver.h 156

Severity Code Description Project File Line Error 156:16: error: 'driver' has a previous declaration as 'Driver* driver [13] C:\Desktop\MK4Duo\src\core\stepper\driver\driver.h 156

Severity Code Description Project File Line Error 111:37: error: conflicting declaration 'TMC26XStepper driver [4] C:Desktop\mk4duo\src\core\stepper\tmc26x\tmc26x.h 111

Severity Code Description Project File Line Error 103:37: error: conflicting declaration 'TMC26XStepper driver [3] C:Desktop\mk4duo\src\core\stepper\tmc26x\tmc26x.h 103

Severity Code Description Project File Line Error 55:37: error: conflicting declaration 'TMC26XStepper driver [2] C:Desktop\mk4duo\src\core\stepper\tmc26x\tmc26x.h 55

Severity Code Description Project File Line Error 47:37: error: conflicting declaration 'TMC26XStepper driver [1] C:Desktop\mk4duo\src\core\stepper\tmc26x\tmc26x.h 47

Severity Code Description Project File Line Error 39:37: error: conflicting declaration 'TMC26XStepper driver [0] C:Desktop\mk4duo\src\core\stepper\tmc26x\tmc26x.h 39

The driver.h and tmc26x.h files show a conflict error, causing it. I've looked everywhere, but I can't find it.

driver.h and tmc26x.h files:

tmc26x.h.txt

driver.h.txt

Please help if you know the solution of this problem!!!