【问题标题】:Arduino compiler gives "system cannot find the file specified" errorArduino 编译器给出“系统找不到指定的文件”错误
【发布时间】:2018-01-12 20:48:02
【问题描述】:

我已经使用 Arduino Uno 板和 Arduino IDE 工作了几个星期,没有任何问题。昨天我尝试编译以下sn-p:

#include <Servo.h>
//www.elegoo.com
Servo myservo;

void setup(){
  myservo.attach(3);
  myservo.write(90);// move servos to center position -> 90°
} 

void loop(){
}

当我打开Servo.h(在安装创建的库中)时,有几个包含,它们引用了Servo 文件夹内子目录中的头文件(即#include "avr/ServoTimers.h")。这些文件是我所期望的。有一个对#include inttypes.h 的引用。我在任何 Arduino 库目录中都找不到该文件。

有谁知道该文件应该在哪里或我如何获得它?

【问题讨论】:

标签: arduino


【解决方案1】:

我进行了更多挖掘,并在..\hardware\tools\avr\avr\include 中找到了该文件。我将该文件及其依赖的 include (stdint.h) 复制到伺服库目录中。 sn-p 现在可以编译了。

不知道为什么编译器找不到安装中包含的其他文件!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-06-22
    • 1970-01-01
    • 2015-07-28
    • 1970-01-01
    • 1970-01-01
    • 2023-04-02
    • 2017-12-07
    • 2016-09-19
    相关资源
    最近更新 更多