title: OpenCV headers file not found <opencv2/opencv.hpp>
body: <p><a href="https://i.stack.imgur.com/0AEz8.png" rel="nofollow noreferrer">Screenshot</a></p>
  <p>I've installed Opencv4 via homebrew.
  And set up everything for the C++ program. Even in the program, I got the headers file's</p>
  <p><a href="https://i.stack.imgur.com/VCvH4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VCvH4.png" alt="enter image description here" /></a></p>
  <p>suggestion from OpenCV. But when I execute the program. <code>fatal error: 'opencv2/opencv.hpp' file not found</code> error occurs.</p>
  <p>I try my best to fix but still stuck. Hope someone can help me out!</p>
  <p>task.json file:</p>
  <pre><code>{
      // See https://go.microsoft.com/fwlink/?LinkId=733558
      // for the documentation about the tasks.json format
      &quot;version&quot;: &quot;2.0.0&quot;,
      &quot;tasks&quot;: [
          {
              &quot;type&quot;: &quot;shell&quot;,
              &quot;label&quot;: &quot;clang++ build active file&quot;,
              &quot;command&quot;: &quot;/usr/bin/clang++&quot;,
              &quot;args&quot;: [
                  &quot;-std=c++17&quot;,
                  &quot;-stdlib=libc++&quot;,
                  &quot;-g&quot;,
                  &quot;${file}&quot;,
                  &quot;-o&quot;,
                  &quot;${fileDirname}/${fileBasenameNoExtension}&quot;
              ],
              &quot;options&quot;: {
                  &quot;cwd&quot;: &quot;${workspaceFolder}&quot;
              },
              &quot;problemMatcher&quot;: [
                  &quot;$gcc&quot;
              ],
              &quot;group&quot;: {
                  &quot;kind&quot;: &quot;build&quot;,
                  &quot;isDefault&quot;: true
              }
          }
      ]
  }
  </code></pre>