[SOLVED] Standard SD library won't compile for Arduino nano every

Okay, for some reason the standard SD library (the one that comes with the IDE) won't compile for my nano every, and throws a goop of "not declared in scope" errors when compiling "sketchbook/libraries/SD/utility/Sd2PinMap.h" (yes I know this is a partial filepath). This code will produce the errors:

#include <SD.h>

void setup() {}

void loop() {}

Here's a link to the mess of errors this generates: https://drive.google.com/file/d/18scWPEvlfrki_ja6XvmrGw8d8KouGMCp/view?usp=sharing

update to current version of the library

I have the latest version installed tho. Actually, I've got this confusing situation:

Multiple libraries were found for "SD.h"
Used: /home/jack/sketchbook/libraries/SD
Not used: /home/jack/standalone/arduino-1.8.13/libraries/SD
Using library SD in folder: /home/jack/sketchbook/libraries/SD (legacy)

Maybe this is the reason?

IDK what part of this you're pointing to as an indicator of an issue, but it all looks fine to me. The only odd thing that I can see is the random "legacy" in parentheses, but that's likely because my sketchbook folder was originally created by a very old version of the IDE way back in probably 2012 when I started to get into Arduino stuff. But I very much doubt the old crust and barnacles are causing the problem here.

delete libraries/SD

I deleted the lib manually, reinstalled, aaaand now it magically works! Thanks for the help!

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