# Opencv2/opencv.hpp: No such file or directory

**URL:** <https://forum.opencv.org/t/opencv2-opencv-hpp-no-such-file-or-directory/11203>\
**Category:** C++\
**Created:** [December 4, 2022, 3:17pm UTC](https://forum.opencv.org/t/opencv2-opencv-hpp-no-such-file-or-directory/11203 "2022-12-04T15:17:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![delcencen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/delcencen/32/2173_2.png) [@delcencen](https://forum.opencv.org/u/delcencen)\
**Post date:** [December 4, 2022, 3:17pm UTC](https://forum.opencv.org/t/opencv2-opencv-hpp-no-such-file-or-directory/11203/1 "2022-12-04T15:17:47Z")

</div>

Hello,  
I try to use c++ with opencv for the first time.I read various tutorial like those one:  
[for vscode](https://duckduckgo.com/?t=ffab&q=opencv+c%2B%2B&iax=videos&ia=videos&iai=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dm9HBM1m_EMU)  
[on Linux](https://docs.opencv.org/4.x/d7/d9f/tutorial_linux_install.html)  
[in terminal](https://opencvguide.readthedocs.io/en/latest/opencvcpp/basics.html)  
But it’s still the same debuting error(he don’t find opencv):

```auto
,,main.cpp:2:10: fatal error: opencv2/opencv.hpp: No such file or directory
    2 | #include <opencv2/opencv.hpp>
      | ^ ~~~~~~~~~~~~~~~~~~~
compilation terminated.

```

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [August 20, 2023, 9:46am UTC](https://forum.opencv.org/t/opencv2-opencv-hpp-no-such-file-or-directory/11203/2 "2023-08-20T09:46:15Z")

</div>

2 posts were split to a new topic: [When using GoCV: fatal error: opencv2/opencv.hpp: No such file or directory](https://forum.opencv.org/t/when-using-gocv-fatal-error-opencv2-opencv-hpp-no-such-file-or-directory/14297)
