# Compilation FAILS #define ARDUINO?

**URL:** <https://community.particle.io/t/compilation-fails-define-arduino/30164>\
**Category:** Troubleshooting\
**Created:** [March 3, 2017, 11:27am UTC](https://community.particle.io/t/compilation-fails-define-arduino/30164 "2017-03-03T11:27:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [March 3, 2017, 11:38am UTC](https://community.particle.io/t/compilation-fails-define-arduino/30164/2 "2017-03-03T11:38:15Z")

</div>

I guess this is due to the recent "improvements" towards Arduino compatibility  
See here

> [@Particle Tools Changelog](https://community.particle.io/t/particle-tools-changelog/26943/26):
>
> March 1st 2017: Firmware v0.6.1 Hey friends! We have released new default firmware v0.6.1. Available now on [https://build.particle.io](https://build.particle.io) for Core/Photon/P1/Electron. Here are just some of the exciting features and enhancements: New v11 Bootloader for Photon/P1/Electron automatically applied RGB LED and SETUP/MODE button mirroring! LED Signaling Themes! Custom LED colors in bootloader v11 (Safe Mode, DFU Mode, Firmware Reset) Improved Electron data usage and communications Lots of new System Ev…

You could try adding

```cpp
#pragma PARTICLE_NO_ARDUINO_COMPATIBILITY

```

or you target 0.6.0 till the issue gets addressed.

But I'm not sure. We can ping @BDub and @jvanier about this.

BTW, this [`SDFat`](https://build.particle.io/libs/SdFat/0.0.7) library should be better to use now as it has some major improvements built in.

> **[GitHub - greiman/SdFat-Particle: SD library for Particle.io devices](https://github.com/greiman/SdFat-Particle)**
>
> SD library for Particle.io devices. Contribute to greiman/SdFat-Particle development by creating an account on GitHub.

---

_[View the full topic](https://community.particle.io/t/compilation-fails-define-arduino/30164)._
