# MicroSD Shield

**URL:** <https://community.sparkfun.com/t/microsd-shield/24671>\
**Category:** Arduino\
**Created:** [July 22, 2012, 12:46am UTC](https://community.sparkfun.com/t/microsd-shield/24671 "2012-07-22T00:46:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![miketwo](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@miketwo](https://community.sparkfun.com/u/miketwo)\
**Post date:** [July 22, 2012, 12:46am UTC](https://community.sparkfun.com/t/microsd-shield/24671/1 "2012-07-22T00:46:27Z")

</div>

Have purchased a new MicroSD Shield. It won’t compile. The compiler complains with:

"In file included from SF\_Micro\_SD.cpp:12:

C:\_Development\arduino-1.0.1\libraries\SdFat/SdFat.h:294: error: conflicting return type specified for ‘virtual void SdFile::write(uint8\_t)’

C:\_Development\arduino-1.0.1\hardware\arduino\cores\arduino/Print.h:48: error: overriding ‘virtual size\_t Print::write(uint8\_t)’

The sketch I’m trying to compile is the Example Sketch found on the Sparkfun MicroSD Shield Document page.

Any suggestions?

---

<div class="post-metadata">

**Author:** ![miketwo](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@miketwo](https://community.sparkfun.com/u/miketwo)\
**Post date:** [July 22, 2012, 12:25pm UTC](https://community.sparkfun.com/t/microsd-shield/24671/2 "2012-07-22T12:25:37Z")

</div>

I loaded the Arduino SD library and Arduino SD examples. All compiled and worked fine.

Just had to change the default CS pin value to 8 to be in compliance with the

Sparkfun shield configuration. There’s some issue with the Sparkfun basic test file…

---

<div class="post-metadata">

**Author:** ![SFE-Michelle](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@SFE-Michelle](https://community.sparkfun.com/u/SFE-Michelle)\
**Post date:** [July 24, 2012, 9:17pm UTC](https://community.sparkfun.com/t/microsd-shield/24671/3 "2012-07-24T21:17:02Z")

</div>

Try using an older Arduino IDE. There have been a lot of changes in the Arduino IDE lately that don’t allow older code to compile. If you are still having problem email tech support.
