zoukankan      html  css  js  c++  java
  • Azure DevKit(AZ3166)源码找不到头文件问题

     Get “Error Presented: #include errors detected” when opening a project

    The error message is Error Presented: #include errors detected. Please update your includePath.

    This is an issue coming from the Microsoft C/C++ extension. Switch the IntelliSense engine to “Tag Parser” can fix this issue:

    • Press F1 and key in ‘settings’ and select the Preference: Open User Settings

    vsc-intellisense-issue-1

    • Set the IntelliSense engine to “Tag Parser

    vsc-intellisense-issue-2

    • Press F1 and key in ‘cpp’ and select the C/Cpp: Edit Configurations

    vsc-intellisense-issue-3

    • Open the c_cpp_properties.json file, add the path of Arduino package into the include path

    vsc-intellisense-issue-4

    You can get more detail from C/C++ for VS Code.

     

    以上是英文原版教程,我补充两点:

     

    1.第一步先改IntelliSense engine 中的Default选项为 “Tag Parser”;

     

     

     

    2.第二步改c_cpp_properties.json 

     

    默认安装路径为C:UsersSANG-ASUSAppDataLocalArduino15packagesAZ3166hardwarestm32f4

    (我的用户名是SANG-ASUS,改成你自己的)

     

    所以在c_cpp_properties.json 里改的是这样的:

    粘贴:

    ,
    "C:\Users\SANG-ASUS\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4"

     

     

     这时候就不会提示报错了,并且可以F12查看定义了!

     

  • 相关阅读:
    python基本数据类型剖析
    常用正则表达式
    python_re模块
    迭代器模式
    状态模式
    备忘录模式
    asp.net 发送邮件
    建造者模式
    抽象工厂模式
    摸板模式与钩子
  • 原文地址:https://www.cnblogs.com/-SANG/p/9328137.html
Copyright © 2011-2022 走看看