# Compile error, no such file or directory

**URL:** <https://community.particle.io/t/compile-error-no-such-file-or-directory/17768>\
**Category:** Troubleshooting\
**Created:** [November 25, 2015, 10:41am UTC](https://community.particle.io/t/compile-error-no-such-file-or-directory/17768 "2015-11-25T10:41:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antoniokly](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@Antoniokly](https://community.particle.io/u/Antoniokly)\
**Post date:** [November 25, 2015, 10:41am UTC](https://community.particle.io/t/compile-error-no-such-file-or-directory/17768/1 "2015-11-25T10:41:17Z")

</div>

![](https://us1.discourse-cdn.com/flex026/uploads/particle/original/2X/8/8c1ff75dddd4328df6106e344dbdf9a8878d1bb4.png)

Hi everyone, got this error trying to compile onto Photons? It is an Arduino sketch with standard libraries, working on Arduinos. Thanks a lot in advance.

---

<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:** [November 25, 2015, 11:31am UTC](https://community.particle.io/t/compile-error-no-such-file-or-directory/17768/2 "2015-11-25T11:31:22Z")

</div>

Particles are no Arduinos.  
Replace the `#include "Arduino.h"` with a `#include "application.h"` and try again.
