Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99579

Override default includePath for intelliSense in vscode C/C++

$
0
0

I am trying to configure vscode intellisense for a C project where I have a custom compiler which is using his "own" implementation of the standard lib (optimized for the targeted processor).

I can succesfully include project libraries, e.g. #include <gpio.h> refers to the correct specific implementation of the project.

But in the case of let's say #include <string.h> intellisense is pointing to my standard windows install (C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\string.h) and not to the desired one who should be in my case in C:/MWLite/MetaWare/arc/libs/inc/string.h

I included the path in c_cpp_properties.json:

{
    "name": "arc",
    "includePath": [
        "${workspaceFolder}/**",
        "C:/MWLite/MetaWare/arc/**"
    ],
    "defines": [
        "_DEBUG",
        "UNICODE",
        "_UNICODE"
    ],
    "compilerPath": "C:/MWLite/MetaWare/arc/bin/gmake.exe",
    "cStandard": "c11",
    "cppStandard": "c++17",
    "intelliSenseMode": "gcc-x64"
}

How can I "force" intellisense to look first in the specified path for libc?


Viewing all articles
Browse latest Browse all 99579

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>