user49595: is there any way to rename a file in sd card without using SdFat? Thank you
im getting error when inclung the
    #include <SPI.h>
    //#include <SD.h>
    #include <SdFat.h>
    extern SdFat SD;

the error msg was "Error compiling for board Arduino/Genuino Uno.
"
Local\Temp\ccZn9IeW.ltrans2.ltrans.o: In function FatVolume::init(unsigned char) [clone .constprop.18]': \Arduino\libraries\SdFat\src/FatLib/FatVolume.cpp:439: undefined reference to SD' \Arduino\libraries\SdFat\src/FatLib/FatVolume.cpp:440: undefined reference to `SD'


user37622: Remove the extern keyword from SdFat SD; because it tels the compiler that the variable is defined elsewhere and it is not and the linker then can't find it.

49595: <p>is there any way to rename a file in sd card without using <strong>SdFat</strong>? Thank you
im getting error when inclung the</p>

<pre><code>    #include &lt;SPI.h&gt;
    //#include &lt;SD.h&gt;
    #include &lt;SdFat.h&gt;
    extern SdFat SD;
</code></pre>

<p>the error msg was "Error compiling for board Arduino/Genuino Uno.
"</p>

<pre><code>Local\Temp\ccZn9IeW.ltrans2.ltrans.o: In function FatVolume::init(unsigned char) [clone .constprop.18]': \Arduino\libraries\SdFat\src/FatLib/FatVolume.cpp:439: undefined reference to SD' \Arduino\libraries\SdFat\src/FatLib/FatVolume.cpp:440: undefined reference to `SD'
</code></pre>
 37622: <p>Remove the <code>extern</code> keyword from <code>SdFat SD;</code> because it tels the compiler that the variable is defined elsewhere and it is not and the linker then can't find it.</p>
