我在Sublime文本和Clang上也安装了EasyClang。我在Windows上工作,并且标题在WSL环境中。我有以下设置:
{
"common_flags" : [
// For simple projects, you can add a folder where your current file is
"-I$file_path",
"-IC:/Users/username/AppData/Local/Packages/CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgfc/LocalState/rootfs/usr/include/x86_64-linux-gnu/bits",
"-IC:/Users/username/AppData/Local/Packages/CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgfc/LocalState/rootfs/usr/include/c++/7",
]
}
但是,我得到了错误:clang: error
error - 'stdio.h' file not found