【解決】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}"
],



免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM