mardi 9 novembre 2021

#include errors detected. Please update you include path

Is there anyone that has ran into include errors since updating to macOS Monterey? VScode was running just fine the other day prior to the update.

I have tried editing configurations in the json, adding to and editing the include paths and a few other long shot changes that I've come across on here.

I included a screen shot of the errors that I am currently encountering. I read somewhere that installing xcode fixed this issue for other people. But I don't use xcode, nor do I really want to.

My compiler is brew g++-11, I have also checked to make sure that the path in the json and the actual path match. I'm kind of at a loss what to do, I tried asking my professors today for help and they were just as lost. Any advice on where to look for a solution would be amazing.

Screen shot of the errors being thrown

I have also tried changing the include path from "${workspaceFolder}/**" to "${workspaceFolder}/inc". Which didn't work either.

Here is the current c_cpp_properties.json

"configurations": [
    {
        "name": "Mac",
        "includePath": [
            "${workspaceFolder}/**"
        ],
        "defines": [],
        "macFrameworkPath": [],
        "compilerPath": "/usr/local/bin/gcc-11",
        "cStandard": "gnu17",
        "cppStandard": "gnu++17",
        "intelliSenseMode": "macos-gcc-x64"
    }
],
"version": 4

I also tried to check the intellisense extension settings, but that is admittedly a bit outside of my scope.

Aucun commentaire:

Enregistrer un commentaire