# Project-wide local library folder

**URL:** <https://forum.arduino.cc/t/project-wide-local-library-folder/1247410>\
**Category:** Libraries\
**Created:** [April 14, 2024, 1:11am UTC](https://forum.arduino.cc/t/project-wide-local-library-folder/1247410 "2024-04-14T01:11:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aidan256](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/aidan256/32/1061484_2.png) [@aidan256](https://forum.arduino.cc/u/aidan256)\
**Post date:** [April 14, 2024, 1:11am UTC](https://forum.arduino.cc/t/project-wide-local-library-folder/1247410/1 "2024-04-14T01:11:46Z")

</div>

In my project, I have multiple sketches that should share the same libraries. So the directory structure should be something like  
project-master  
project-master/libraries/sampleLibrary.h  
project-master/sketches/sketch1/skech1.ino  
project-master/sketches/sketch2/sketch2.ino

Where both sketches should include sampleLibrary.h  
I know this should be possible because I have downloaded an arduino project that does something similar (libraries are in a directory above the sketch directory) and it just uses #include .  
I tried to do the same code and file structure as that project, but it did not work

---

<div class="post-metadata">

**Author:** ![anon94801460](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@anon94801460](https://forum.arduino.cc/u/anon94801460)\
**Post date:** [April 14, 2024, 1:15am UTC](https://forum.arduino.cc/t/project-wide-local-library-folder/1247410/2 "2024-04-14T01:15:43Z")

</div>

> [@aidan256](#):
>
> I tried to do the same code and file structure as that project, but it did not work

Have it occurred to you that forum members have no idea what you tried, or what "did not work" means?

Please read and follow the directions in the "How to get the best out of this forum" post, and include the required information in your post.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [October 11, 2024, 1:15am UTC](https://forum.arduino.cc/t/project-wide-local-library-folder/1247410/3 "2024-10-11T01:15:46Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
