解決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萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章