# Solved: #include header file not work

**URL:** <https://forum.arduino.cc/t/solved-include-header-file-not-work/921855>\
**Category:** Programming\
**Created:** [November 4, 2021, 5:18pm UTC](https://forum.arduino.cc/t/solved-include-header-file-not-work/921855 "2021-11-04T17:18:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![blh64](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/blh64/32/605986_2.png) [@blh64](https://forum.arduino.cc/u/blh64)\
**Post date:** [November 4, 2021, 5:22pm UTC](https://forum.arduino.cc/t/solved-include-header-file-not-work/921855/2 "2021-11-04T17:22:14Z")

</div>

If you have your .h and .cpp file in the same directory as your .ino file, `#include "filename.h"` should work.

How do you know it is not working? Please post your code and the errors generated following this: [How to get the best out of this forum - Using Arduino / Installation & Troubleshooting - Arduino Forum](https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/679966)

---

_[View the full topic](https://forum.arduino.cc/t/solved-include-header-file-not-work/921855)._
