The Arduino Mega 2560 in my ROBO 3DR1 Plus 3D printer has failed. I purchased a new board and tried to upload the Marlin Firmware for the printer. I am not able to complete the compile and upload due to errors. I have not altered the original code so I do not know what is wrong. I am absolutely NOT a programmer, so the error does not tell me anything useful. Thank you for any assistance that can be provided. Bob
The error is as follows:
Arduino: 1.8.19 (Mac OS X), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
In file included from /Users/BobD/Desktop/ROBO3DR1PLUSV2/SdBaseFile.cpp:24:0:
SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'
struct fpos_t {
^~~~~~
In file included from /Users/BobD/Desktop/ROBO3DR1PLUSV2/Marlin.h:10:0,
from /Users/BobD/Desktop/ROBO3DR1PLUSV2/SdBaseFile.cpp:21:
/Users/BobD/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/avr/include/stdio.h:950:33: note: 'fpos_t' has a previous declaration here
extension typedef long long fpos_t;
^~~~~~
In file included from /Users/BobD/Desktop/ROBO3DR1PLUSV2/SdFile.h:27:0,
from /Users/BobD/Desktop/ROBO3DR1PLUSV2/SdFile.cpp:23:
SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'
struct fpos_t {
^~~~~~
In file included from /Users/BobD/Desktop/ROBO3DR1PLUSV2/Marlin.h:10:0,
from /Users/BobD/Desktop/ROBO3DR1PLUSV2/SdFile.cpp:20:
/Users/BobD/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/avr/include/stdio.h:950:33: note: 'fpos_t' has a previous declaration here
extension typedef long long fpos_t;
^~~~~~
/Users/BobD/Desktop/ROBO3DR1PLUSV2/SdBaseFile.cpp: In member function 'void SdBaseFile::getpos(fpos_t*)':
SdBaseFile.cpp:298:8: error: request for member 'position' in '* pos', which is of non-class type 'fpos_t {aka long long int}'
pos->position = curPosition_;
^~~~~~~~
SdBaseFile.cpp:299:8: error: request for member 'cluster' in '* pos', which is of non-class type 'fpos_t {aka long long int}'
pos->cluster = curCluster_;
^~~~~~~
In file included from /Users/BobD/Desktop/ROBO3DR1PLUSV2/SdFile.h:27:0,
from /Users/BobD/Desktop/ROBO3DR1PLUSV2/cardreader.h:8,
from /Users/BobD/Desktop/ROBO3DR1PLUSV2/cardreader.cpp:2:
SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'
struct fpos_t {
^~~~~~
In file included from /Users/BobD/Desktop/ROBO3DR1PLUSV2/Marlin.h:10:0,
from /Users/BobD/Desktop/ROBO3DR1PLUSV2/cardreader.cpp:1:
/Users/BobD/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/avr/include/stdio.h:950:33: note: 'fpos_t' has a previous declaration here
extension typedef long long fpos_t;
^~~~~~
/Users/BobD/Desktop/ROBO3DR1PLUSV2/SdBaseFile.cpp: In member function 'void SdBaseFile::setpos(fpos_t*)':
SdBaseFile.cpp:1496:23: error: request for member 'position' in '* pos', which is of non-class type 'fpos_t {aka long long int}'
curPosition_ = pos->position;
^~~~~~~~
SdBaseFile.cpp:1497:22: error: request for member 'cluster' in '* pos', which is of non-class type 'fpos_t {aka long long int}'
curCluster_ = pos->cluster;
^~~~~~~
In file included from /Users/BobD/Desktop/ROBO3DR1PLUSV2/SdFile.h:27:0,
from /Users/BobD/Desktop/ROBO3DR1PLUSV2/cardreader.h:8,
from /Users/BobD/Desktop/ROBO3DR1PLUSV2/Marlin_main.cpp:44:
SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'
struct fpos_t {
^~~~~~
In file included from /Users/BobD/Desktop/ROBO3DR1PLUSV2/Marlin.h:10:0,
from /Users/BobD/Desktop/ROBO3DR1PLUSV2/Marlin_main.cpp:30:
/Users/BobD/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/avr/include/stdio.h:950:33: note: 'fpos_t' has a previous declaration here
extension typedef long long fpos_t;
^~~~~~
In file included from /Users/BobD/Desktop/ROBO3DR1PLUSV2/SdFile.h:27:0,
from /Users/BobD/Desktop/ROBO3DR1PLUSV2/cardreader.h:8,
from /Users/BobD/Desktop/ROBO3DR1PLUSV2/stepper.cpp:30:
SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'
struct fpos_t {
^~~~~~
In file included from /Users/BobD/Desktop/ROBO3DR1PLUSV2/Marlin.h:10:0,
from /Users/BobD/Desktop/ROBO3DR1PLUSV2/stepper.cpp:24:
/Users/BobD/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/avr/include/stdio.h:950:33: note: 'fpos_t' has a previous declaration here
extension typedef long long fpos_t;
^~~~~~
In file included from /Users/BobD/Desktop/ROBO3DR1PLUSV2/SdFile.h:27:0,
from /Users/BobD/Desktop/ROBO3DR1PLUSV2/cardreader.h:8,
from /Users/BobD/Desktop/ROBO3DR1PLUSV2/ultralcd.cpp:6:
SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'
struct fpos_t {
^~~~~~
In file included from /Users/BobD/Desktop/ROBO3DR1PLUSV2/Marlin.h:10:0,
from /Users/BobD/Desktop/ROBO3DR1PLUSV2/temperature.h:24,
from /Users/BobD/Desktop/ROBO3DR1PLUSV2/ultralcd.cpp:1:
/Users/BobD/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/avr/include/stdio.h:950:33: note: 'fpos_t' has a previous declaration here
extension typedef long long fpos_t;
^~~~~~
exit status 1
using typedef-name 'fpos_t' after 'struct'
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.