1. Got a question or need help troubleshooting? Post to the troubleshooting forum or Search the forums!

Solved Error on "Struct fpos_t {" when installing an LCD controller

Discussion in 'Troubleshooting' started by Filipe, Apr 28, 2018.

  1. Filipe

    Filipe New Member

    Joined:
    Apr 28, 2018
    Messages:
    2
    Likes Received:
    1
    Hi Guys!

    Recently I updated my R1+ using firmware V2.
    I solved some issues I had with the XXL Screen by replacing the code; "include <utility/u8g.h> with #include <clib/u8g.h> in the dogm_font_data_marlin.h file". I know I'm getting close in making this upgrade work but this error came up when I was uploading the update to the board listed below:

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

    from sketch\cardreader.h:8,

    from sketch\Marlin_main.cpp:44:

    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:\users\liteb\documents\arduinodata\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-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'

    Does anyone know how to fix this ?
     
  2. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
  3. Filipe

    Filipe New Member

    Joined:
    Apr 28, 2018
    Messages:
    2
    Likes Received:
    1
    Thank s Mark, it worked like a charm!
     
    mark tomlinson likes this.

Share This Page