Sdfat_format.ino will not compile

Hello, I am trying to compile and run an sdfat_format.ino sketch so I can format the flash memory on a raspberry pi pico. I did a new install of the arduino ide. Installed the libraries needed for the sketch. However, when I try to verify the program throws error codes and will not compile. here is the error message.
C:\Users\Mark\AppData\Local\Arduino15\packages\arduino\hardware\mbed_rp2040\4.0.2\cores\arduino/mbed/platform/include/platform/mbed_retarget.h:211:25: note: previous declaration as
typedef struct DIR_impl DIR;
^~~

I have tried different versions of the ide 1.8.19 and 2.1.1 If you have run into this before, I could sure use some good leads on which way to go on this. thanks in advance. mark z

Welcome to the forum

Please post the sketch that you are trying to compile

From the error message it would appear that you are trying to declare DIR when it is already declared elsewhere. Both of these declarations appear to be within libraries

Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'

Use code tags (the < CODE/ > icon above the compose window) to make it easier to read and copy for examination

https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.