# Photon2 compile errors when using custom library

**URL:** <https://community.particle.io/t/photon2-compile-errors-when-using-custom-library/65173>\
**Category:** Libraries\
**Tags:** photon\
**Created:** [August 18, 2023, 12:11pm UTC](https://community.particle.io/t/photon2-compile-errors-when-using-custom-library/65173 "2023-08-18T12:11:49Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![robc](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@robc](https://community.particle.io/u/robc)\
**Post date:** [August 19, 2023, 5:47pm UTC](https://community.particle.io/t/photon2-compile-errors-when-using-custom-library/65173/3 "2023-08-19T17:47:23Z")

</div>

> [@ronlisle](#):
>
> re-uploading the libraries, and then recompiling the code (using --target 5.4.1) but I'm receiving a lot of errors.

Maybe this thread reply by @rickkas7 could help? :[https://community.particle.io/t/issue-cloud-compile-fails-but-local-compile-succeeds/64878/6](https://community.particle.io/t/issue-cloud-compile-fails-but-local-compile-succeeds/64878/6)

I came across it when I was researching why I was not able to cloud compile my workbench projects when local compile worked.

---

_[View the full topic](https://community.particle.io/t/photon2-compile-errors-when-using-custom-library/65173)._
