最近在用Arduino Due开发板调用库函数进行FFT运算,我选择的IDE为Arduino 1.8.9,安装的软件包为Arduino SAM boards(32-bits ARM Cortex-M3)by Arduino 版本1.6.12,但编译器始终不通过,错误如下:
Arduino:1.8.9 (Windows 10), 开发板:"Arduino Due (Programming Port)"
构建选项已变更,全部重新构建
In file included from F:\Arduino\EIT\EIT.ino:3:0:
C:\Users\Lenovo\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12\system/CMSIS/CMSIS/Include/arm_math.h:283:0: warning: "PI" redefined [enabled by default]
#define PI 3.14159265358979f
^
In file included from C:\Users\Lenovo\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12\cores\arduino/Arduino.h:44:0,
from sketch\EIT.ino.cpp:1:
C:\Users\Lenovo\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12\cores\arduino/wiring_constants.h:36:0: note: this is the location of the previous definition
#define PI 3.1415926535897932384626433832