How can i fix this error message?

224 views
Skip to first unread message

bun...@gmail.com

unread,
Mar 6, 2019, 12:25:28 AM3/6/19
to Blue Eagle Labs Support
Arduino: 1.8.8 (Windows 10), Board: "Arduino Mega ADK"

Build options changed, rebuilding all
In file included from sketch\SdFile.h:27:0,

                 from sketch\cardreader.h:8,

                 from sketch\Marlin_main.cpp:37:

SdBaseFile.h:38:8: 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;

                                 ^

In file included from sketch\SdBaseFile.cpp:24:0:

SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'

 struct fpos_t {

        ^

In file included from sketch\Marlin.h:10:0,

                 from sketch\SdBaseFile.cpp:21:

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;

                                 ^

sketch\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_;

        ^

sketch\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 sketch\SdFile.h:27:0,

                 from sketch\SdFile.cpp:23:

SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'

 struct fpos_t {

        ^

In file included from sketch\Marlin.h:10:0,

                 from sketch\SdFile.cpp:20:

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;

                                 ^

In file included from sketch\SdFile.h:27:0,

                 from sketch\cardreader.h:8,

                 from sketch\cardreader.cpp:2:

SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'

 struct fpos_t {

        ^

In file included from sketch\Marlin.h:10:0,

                 from sketch\cardreader.cpp:1:

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;

                                 ^

In file included from sketch\SdFile.h:27:0,

                 from sketch\cardreader.h:8,

                 from sketch\stepper.cpp:30:

SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'

 struct fpos_t {

        ^

In file included from sketch\Marlin.h:10:0,

                 from sketch\stepper.cpp:24:

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;

                                 ^

In file included from sketch\SdFile.h:27:0,

                 from sketch\cardreader.h:8,

                 from sketch\ultralcd.cpp:6:

SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'

 struct fpos_t {

        ^

In file included from sketch\Marlin.h:10:0,

                 from sketch\temperature.h:24,

                 from sketch\ultralcd.cpp:1:

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.

Sukhdeep Grewal

unread,
Jan 31, 2021, 5:08:32 PM1/31/21
to Blue Eagle Labs Support
Has this been resolved? I am experiencing the same issue right now :) thanks!

Sukhdeep Grewal

unread,
Jan 31, 2021, 6:58:38 PM1/31/21
to Blue Eagle Labs Support
Nevermind, I found t he solution, make sure you are using Arduino IDE version 1.0.5, this error message only appears on the newer Arduino builds.
Reply all
Reply to author
Forward
0 new messages