解决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。

你可能感兴趣的:(php扩展开发)