1. 程式人生 > >【解決】VSCode在windows下不能開啟標準標頭檔案

【解決】VSCode在windows下不能開啟標準標頭檔案

滑鼠放到標準標頭檔案上,VSCode提示一下錯誤:

#include errors detected. Please update your includePath. IntelliSense features for this translation unit (X:\_09_Linux\_02_程式\work\robot-car\module\tcp_server\drive_tcp_server.c) will be provided by the Tag Parser. cannot open source file "stdio.h"

放上去有個小燈泡,點燈泡設定路勁。在c_cpp_properties.json新增路勁即可。

[注意]

windows下的路徑新增位置在msvc-x64

"intelliSenseMode": "msvc-x64", "browse": { "path": [ "X:/LinuxC_Include", "${workspaceRoot}" ],