We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
当使用llvm.org的LLVM工具链时,报错“找不到头文件”, “找不到链接库”
MacOS的系统c++头文件和库,并不在/usr/include下面,而是类似'/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'这样的目录(可以用xcode-select -p看到)
给clang/clang++添加-sysroot参数,指向这个目录貌似可以解决。
The text was updated successfully, but these errors were encountered:
我回头改进下
Sorry, something went wrong.
我 dev 上支持了
No branches or pull requests
MacOS/LLVM
当使用llvm.org的LLVM工具链时,报错“找不到头文件”, “找不到链接库”
可能的原因
MacOS的系统c++头文件和库,并不在/usr/include下面,而是类似'/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'这样的目录(可以用xcode-select -p看到)
可能的解决办法
给clang/clang++添加-sysroot参数,指向这个目录貌似可以解决。
The text was updated successfully, but these errors were encountered: