exit status 1 request for member 'position' in '* pos', which is of non-class...

Hey
im not good at programming.....
im getting such error

exit status 1
request for member 'position' in '* pos', which is of non-class type 'fpos_t {aka long long int}'


void SdBaseFile::setpos(fpos_t* pos) {
curPosition_ = pos->position;
curCluster_ = pos->cluster;
}

The compiler is telling you that the 'fpos_t' type is declared as "long long int" (64-bit integer) and it doesn't have fields named 'position' or 'cluster'. Perhaps the code was written when some library declared that type differently. Where did you get the sketch? What libraries does it use?

skech is from marlin site its 3D printer Marlin Firmware Arduino SdFat Library. Board ATmega1824P 16hz .

renx90:
skech is from marlin site

I would be inclined to take it up with them, then.

maby im blind... but i cant find way to contact them thats why i came here.

No "contact us" on the web site, no url as a comment in the code, that kind of thing?

Did you search the forum for "maplin"?...

Did you install any library/ies the code might need? (That's the includes, usually right at the top of the sketch.)

Hal_Posoyan:
Did you search the forum for "maplin"?...

They went bust a while back.

renx90:
im getting such error

There’s much more useful information to the error if you scroll the black console window up and look at the full error message.

Please do this:

  • When you encounter an error, you’ll see a button on the right side of the orange bar “Copy error messages” in the Arduino IDE (or the icon that looks like two pieces of paper at the top right corner of the black console window in the Arduino Web Editor). Click that button…
  • In a forum reply here, click on the reply field.
  • Click the </> button on the forum toolbar. This will add the forum’s code tags markup to your reply.
  • Press “Ctrl + V”. This will paste the error between the code tags.
  • Move the cursor outside of the code tags before you add any additional text to your reply.

If the text exceeds the forum’s 9000 character limit, save it to a .txt file and post it as an attachment. If you click the “Reply” button here, you will see an “Attachments and other settings” link.

renx90:
skech is from marlin site its 3D printer Marlin Firmware Arduino SdFat Library.

Please put the sketch in a .zip file and attach it to a reply here. If you click the “Reply” button, you’ll see an “Attachments and other settings” link that will allow you to make an attachment.

Hal_Posoyan:
Did you search the forum for “maplin”?..

This is about Marlin, not “maplin”.

Hal_Posoyan:
No “contact us” on the web site, no url as a comment in the code, that kind of thing?

Marlin is a free open source firmware for 3D printers used by millions of people. If every newbie who needed help contacted the developers of Marlin for support, they would never be able to get any real work done and would likely abandon the project.