解决VS Code报检测到#include错误,请更新includepath的问题

使用VScode 开发php扩展时,提示"检测到#include错误,请更新includepath"

执行

 gcc -v -E -x c++ -

	#include "..." search starts here:
	#include <...> search starts here:
	 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1
	 /usr/local/include
	 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.0/include
	 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
	 /usr/include
	 /System/Library/Frameworks (framework directory)
	 /Library/Frameworks (framework directory)
	End of search list.


找到上面的把它加入到 c_cpp_properties.json。

发布了148 篇原创文章 · 获赞 79 · 访问量 75万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章