Skip to content

Default include paths for Mac not sufficient (c_cpp_properties.json) #944

@JeffreyCA

Description

@JeffreyCA

Operating System: macOS
Version: 10.12.6

I have the following settings enabled:

"C_Cpp.intelliSenseEngine": "Default",
"C_Cpp.intelliSenseEngineFallback": "Enabled",

I get include errors if I try to include the standard library iostream:

#include errors detected. Please update your includePath. IntelliSense features for this translation unit

cannot open source file "endian.h" (dependency of "iostream")

In my c_cpp_properties.json file I have to add the following include path in order to resolve the include error:

"includePath": [
...
    "/usr/include/machine",
...
],

This is because the missing endian.h file is present in /usr/include/machine.

Could you please add this extra path to the default include path list for Mac?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions