Problem with the compilation of Marlin

I've downloaded the last version of Marlin.
I've intalled and updated the U8glib and the other libraries.
I have the last version of the AVR Arduino.

But I can't compile any more. How can I fix it??

This is the problem:

Arduino:1.6.12 (Windows 7), Tarjeta:"Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

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

from sketch\cardreader.h:6,

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\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'

I think the problem was fixed in Marlin a while ago but you're using an old version. See: marlin 1.0 - compilation problem on win10 AR IDE 1.6.11 · Issue #5111 · MarlinFirmware/Marlin · GitHub

martinillou:
I've downloaded the last version of Marlin.

Are you sure? Which version? Marlin 1.0.2-2 was released yesterday with a fix for that issue:
Release 1.0.2-2 · MarlinFirmware/Marlin · GitHub. Give it a try if you haven't already. It was also fixed in RC a while ago.

Thank you so much, that's it! I was pretty sure,that my version was the last. But not. Thank you.

One question. Where can I see when a version of Marlin changes?

Thank you again!

If you click the "Watch" button on the Marlin repository you will get an email every time they do a release(for example, you would have gotten one yesterday for 1.0.2-2). You will need a GitHub account to do that but they are free and easy to set up and GitHub doesn't spam you at all except that you will also get email notifications about issue reports and pull requests on that repository also. You might be able to turn those off in the notifications section of your profile settings, I'm not sure about that. Still, it's kind of interesting to watch the goings-on in a repository, especially if it's something you are using. You could always unwatch the repository if it ends up being too many emails.

Other than that, you could just check the [Releases · MarlinFirmware/Marlin · GitHub](http://Releases page) regularly.

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