error: using typedef-name 'fpos_t' after 'struct' July 25, 2016 02:08PM |
Registered: 8 years ago Posts: 2 |
Re: error: using typedef-name 'fpos_t' after 'struct' July 26, 2016 11:02PM |
Admin Registered: 14 years ago Posts: 7,178 |
Re: error: using typedef-name 'fpos_t' after 'struct' July 28, 2016 08:40AM |
Registered: 8 years ago Posts: 40 |
Arduino:1.6.9 (Windows 8.1), Scheda:"Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)" In file included from sketch\SdFile.h:27:0, from sketch\cardreader.h:8, from sketch\Marlin_main.cpp:37: SdBaseFile.h:38: error: using typedef-name 'fpos_t' after 'struct' struct fpos_t { ^ In file included from sketch\Marlin.h:10:0, from sketch\Marlin_main.cpp:22: c:\users\davide\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2\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'
Re: error: using typedef-name 'fpos_t' after 'struct' July 28, 2016 10:59PM |
Admin Registered: 14 years ago Posts: 7,178 |
[Solved] error: using typedef-name 'fpos_t' after 'struct' July 29, 2016 09:50AM |
Registered: 8 years ago Posts: 40 |
Re: error: using typedef-name 'fpos_t' after 'struct' July 31, 2016 02:14PM |
Registered: 8 years ago Posts: 2 |
Re: error: using typedef-name 'fpos_t' after 'struct' July 31, 2016 04:02PM |
Registered: 8 years ago Posts: 40 |
Quote
sstory0626
Hi All,
Having the same problem as the OP, but I seem to be less self-sufficient
Let me get this out of the way first--I really suck at coding. My modified Kossel was first run using the Blomker software package. The printer ran ok, but I kind of lost interest and it has been sitting since before Christmas.
I got a new computer and failed to transfer all the needed files from the old one. I downloaded the latest Marlin version and also got the Mini Kossel package from Builda3Dprinter.eu. I copied the info from the old config.h file into the new download, but I can't get it to compile.
Below is my error message. Can anyone see what I need to do?
___________
Arduino: 1.6.10 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
Build options changed, rebuilding all
In file included from sketch\Marlin.h:21:0,
from sketch\ConfigurationStore.cpp:1:
sketch\fastio.h:1418:0: warning: "DIO73_PIN" redefined
#define DIO73_PIN PINJ4
^
sketch\fastio.h:1406:0: note: this is the location of the previous definition
#define DIO73_PIN PINJ3
^
In file included from sketch\Marlin.h:21:0,
from sketch\thermistortables.h:4,
from sketch\Configuration.h:586,
from C:\Users\sstory.MERKLE\Downloads\Kossel Mini\Marlin\Marlin.ino:33:
sketch\fastio.h:1418:0: warning: "DIO73_PIN" redefined
#define DIO73_PIN PINJ4
^
sketch\fastio.h:1406:0: note: this is the location of the previous definition
#define DIO73_PIN PINJ3
^
In file included from sketch\Marlin.h:21:0,
from sketch\MarlinSerial.cpp:23:
sketch\fastio.h:1418:0: warning: "DIO73_PIN" redefined
#define DIO73_PIN PINJ4
^
sketch\fastio.h:1406:0: note: this is the location of the previous definition
#define DIO73_PIN PINJ3
^
In file included from sketch\Marlin.h:21:0,
from sketch\Marlin_main.cpp:30:
sketch\fastio.h:1418:0: warning: "DIO73_PIN" redefined
#define DIO73_PIN PINJ4
^
sketch\fastio.h:1406:0: note: this is the location of the previous definition
#define DIO73_PIN PINJ3
^
sketch\Marlin_main.cpp:1609:36: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
LCD_MESSAGEPGM(MACHINE_NAME" "MSG_OFF".");
^
In file included from sketch\SdFile.h:27:0,
from sketch\cardreader.h:8,
from sketch\Marlin_main.cpp:37:
SdBaseFile.h:38: error: using typedef-name 'fpos_t' after 'struct'
struct fpos_t {
^
In file included from sketch\Marlin.h:10:0,
from sketch\Marlin_main.cpp:30:
c:\program files (x86)\arduino\hardware\tools\avr\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.
Re: error: using typedef-name 'fpos_t' after 'struct' July 31, 2016 09:32PM |
Registered: 8 years ago Posts: 2 |
Re: error: using typedef-name 'fpos_t' after 'struct' August 14, 2016 09:50AM |
Registered: 8 years ago Posts: 5 |
Re: error: using typedef-name 'fpos_t' after 'struct' September 14, 2016 08:55PM |
Registered: 8 years ago Posts: 40 |
Re: error: using typedef-name 'fpos_t' after 'struct' November 04, 2016 10:36AM |
Registered: 9 years ago Posts: 2 |
Re: error: using typedef-name 'fpos_t' after 'struct' November 08, 2016 10:21PM |
Registered: 8 years ago Posts: 2 |
Re: error: using typedef-name 'fpos_t' after 'struct' November 19, 2016 08:05AM |
Registered: 9 years ago Posts: 20 |
Quote
Alexandria_Al
Good news: The firmware compiles perfectly well on Arduino 1.6.11 after manually changing all instances of "fpos_t" to "fpost"
Bad news: The AutoHome grinds in the Y-Axis...and I could use some help. I'm posting a new general question on it with more details ("Marlin Rough Steppers & Failed AutoHome"). Thanks to anyone who can help.
Re: error: using typedef-name 'fpos_t' after 'struct' April 10, 2017 12:34PM |
Registered: 7 years ago Posts: 619 |
Re: error: using typedef-name 'fpos_t' after 'struct' April 10, 2017 06:19PM |
Admin Registered: 14 years ago Posts: 7,178 |
Re: error: using typedef-name 'fpos_t' after 'struct' April 11, 2017 12:10AM |
Registered: 7 years ago Posts: 619 |
Re: error: using typedef-name 'fpos_t' after 'struct' January 28, 2018 04:21AM |
Registered: 7 years ago Posts: 2 |
Re: error: using typedef-name 'fpos_t' after 'struct' January 28, 2018 06:53AM |
Registered: 8 years ago Posts: 40 |
Re: error: using typedef-name 'fpos_t' after 'struct' January 29, 2018 11:29AM |
Registered: 7 years ago Posts: 2 |
Re: error: using typedef-name 'fpos_t' after 'struct' January 30, 2018 05:13AM |
Admin Registered: 14 years ago Posts: 7,178 |
Re: error: using typedef-name 'fpos_t' after 'struct' January 30, 2018 09:48AM |
Registered: 7 years ago Posts: 619 |
Re: error: using typedef-name 'fpos_t' after 'struct' June 17, 2019 10:37AM |
Registered: 13 years ago Posts: 30 |
Quote
webliya
There is another workaround. You can still use the new versions of Arduino like 1.6.10.
Rename fpos_t variables in SdBaseFile.h and SdBaseFile.cpp to another name like fpos_t1 and recompile. Problem is in C++ you can not use typedef and struct for the same varibale name.
fpos_t is already defined in stdio.h which is a hardware library file for arduino.
Can
Re: [Solved] error: using typedef-name 'fpos_t' after 'struct' November 30, 2019 10:52AM |
Registered: 7 years ago Posts: 5 |