Can't compile Marlin on Windows 10 - typedef-name
July 30, 2016 05:49PM
I'm getting the following errors on compile:

In file included from C:\Users\Sheldon\AppData\Local\Temp\build72fb746c43f86b73beb33336246c8db4.tmp\sketch\SdFile.h:27:0,

from C:\Users\Sheldon\AppData\Local\Temp\build72fb746c43f86b73beb33336246c8db4.tmp\sketch\cardreader.h:6,

from C:\Users\Sheldon\AppData\Local\Temp\build72fb746c43f86b73beb33336246c8db4.tmp\sketch\Marlin_main.cpp:37:

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

struct fpos_t {

^

In file included from C:\Users\Sheldon\AppData\Local\Temp\build72fb746c43f86b73beb33336246c8db4.tmp\sketch\Marlin.h:10:0,

from C:\Users\Sheldon\AppData\Local\Temp\build72fb746c43f86b73beb33336246c8db4.tmp\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;

^

Using library LiquidCrystal at version 1.0.5 in folder: C:\Program Files (x86)\Arduino\libraries\LiquidCrystal
exit status 1
using typedef-name 'fpos_t' after 'struct'


Any ideas?
Re: Can't compile Marlin on Windows 10 - typedef-name
August 01, 2016 10:15AM
Solved. Found another thread. Ended up ha ing to install 1.0.6
Re: Can't compile Marlin on Windows 10 - typedef-name
August 07, 2016 01:08PM
hi
I have the same problem ( using typedef-name 'fpos_t' after 'struct' ) how to solve ?
Re: Can't compile Marlin on Windows 10 - typedef-name
September 13, 2016 10:07AM
Exactly the issues I'm having. and I can't seem to find an earlier version of the arduino ide to go back to.
Re: Can't compile Marlin on Windows 10 - typedef-name
September 13, 2016 10:43AM
Version 1.0.6 works perfectly on Windows 10

Arduino 1.0.6
Re: Can't compile Marlin on Windows 10 - typedef-name
September 13, 2016 04:12PM
Or download the latest version of Marlin. RC or RCBugFix.

Or, if you can't for some reason, rename fpos_t to filepos_t:
/Marlin/Marlin/SdBaseFile.cpp:
  301  }
  302  //------------------------------------------------------------------------------
  303: void SdBaseFile::getpos(filepos_t* pos) {
  304    pos->position = curPosition_;
  305    pos->cluster = curCluster_;
  ...
  933   */
  934  int SdBaseFile::peek() {
  935:   filepos_t pos;
  936    getpos(&pos);
  937    int c = read();
  ...
 1488  }
 1489  //------------------------------------------------------------------------------
 1490: void SdBaseFile::setpos(filepos_t* pos) {
 1491    curPosition_ = pos->position;
 1492    curCluster_ = pos->cluster;

/Marlin/Marlin/SdBaseFile.h:
   41  //------------------------------------------------------------------------------
   42  /**
   43:  * \struct filepos_t
   44   * \brief internal type for istream
   45   * do not use in user apps
   46   */
   47: struct filepos_t {
   48    /** stream position */
   49    uint32_t position;
   50    /** cluster for position */
   51    uint32_t cluster;
   52:   filepos_t() : position(0), cluster(0) {}
   53  };
   54  
   ..
  206     * \param[out] pos struct to receive position
  207     */
  208:   void getpos(filepos_t* pos);
  209    /** set position for streams
  210     * \param[out] pos struct with value for new position
  211     */
  212:   void setpos(filepos_t* pos);
  213    //----------------------------------------------------------------------------
  214    bool close();

Edited 1 time(s). Last edit at 09/13/2016 04:15PM by Wurstnase.


Triffid Hunter's Calibration Guide --> X <-- Drill for new Monitor Most important Gcode.
Re: Can't compile Marlin on Windows 10 - typedef-name
September 14, 2016 02:45AM
Thanks downloaded and installed. Can't fully test as I now have an electrical/electronics fault that's going to take a couple of days to fix, whilst I wait for some spares.
Sorry, only registered users may post in this forum.

Click here to login