Many thanks Hutkikz.
I changed the name fpos_t to fpost in both SdBaseFile .h and .cpp, as suggested in the link that you provided.
Worked like a charm, my 3D software now compile and loads.
Again many thanks for your extremely quick response which has solved my Arduino problem.
regards
johnmont