-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Description
The default c_cpp_properties.json file gave this default array of paths for the browse.path for Mac
[
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1",
"/usr/local/include",
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/8.1.0/include",
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include",
"/usr/include",
"${workspaceRoot}"
]
but it was still saying it could not find these in the browse.path
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
After opening in XCode and revealing in finder where these libs were, I found I had to add these 2 paths to my browse.path
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr",
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include",
Is my XCode installed wrong or is this just because XCode has updated it's filepaths and the extension isn't caught up?
zhang6longfei