-1

I have an error with inlcudePath here is what it says.

#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit I also use Linux if that makes any difference

Here is my code

    #include <iostream>
    #include "header.h"
    using namespace std;

    int main()
    {   
brooksrog
  • 1
  • 2
  • The error is on the #include "header.h" – brooksrog May 06 '22 at 11:37
  • What environment (IDE, editor) are you using? – Some programmer dude May 06 '22 at 11:39
  • did you update your includePath? What is your includePath? Where is header.h located? – 463035818_is_not_an_ai May 06 '22 at 11:40
  • I use vscode, how do i update includePath? – brooksrog May 06 '22 at 11:40
  • Oh my goodness after hours the error finally said it had a quickfix that put this into my includePath /usr/include/sound/sof – brooksrog May 06 '22 at 11:42
  • Have you read e.g. [this guide about VSCode with GCC on Linux](https://code.visualstudio.com/docs/cpp/config-linux)? You need to edit two configuration files, one for VSCode and the C++ plugin to work, and one to build. Both needs to tell about the include paths. – Some programmer dude May 06 '22 at 11:44
  • I also recommend you read [What is the difference between #include and #include "filename"?](https://stackoverflow.com/questions/21593/what-is-the-difference-between-include-filename-and-include-filename). – Some programmer dude May 06 '22 at 11:45
  • For future questions please take some time to read [the help pages](http://stackoverflow.com/help), take the SO [tour], read [ask], as well as [this question checklist](https://codeblog.jonskeet.uk/2012/11/24/stack-overflow-question-checklist/). That will help you write better questions, which makes it easier for us to actually help you. – Some programmer dude May 06 '22 at 11:49
  • Please provide enough code so others can better understand or reproduce the problem. – Community May 06 '22 at 17:33

1 Answers1

0

Fixed, I put this into my Include Path

/usr/include/sound/sof

brooksrog
  • 1
  • 2
  • 2
    Do that library really have a header file named `header.h`? With the code you show it seems like you try to include your own custom header file. Does that `header.h` include some other header files? The point of a [mre] is that it should try to replicate the error you get, and if we don't have the actual code leading to the errors then it's really hard to help you. – Some programmer dude May 06 '22 at 11:49
  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community May 07 '22 at 04:17