我正在使用Mozzi (http://sensorium.github.io/Mozzi/)作为教程(http://www.echanter.com/home/howto-build#TOC-Arduino-IDE)的一部分。我在Arduino Studio中包括了Mozzi,并在本教程中跟踪了一些次要的内容。我已经看过报道的台词了,但我很困惑。编译错误是:
Mozzi/mozzi_fixmath.cpp.o: In function isqrt16(unsigned int)': /home/temp/sketchbook/libraries/Mozzi/mozzi_fixmath.cpp:156: multiple definition of isqrt32(unsigned long)'
echanter.cpp.o:/home/temp/sketchbook/libraries/Mozzi/Sample.h:61: first defined here
collect2: error: ld returned 1 exit status发布于 2019-12-22 09:27:02
根dir中有两个文件,其中定义了isqrt16(无符号int):mozzi_fixmath.cpp和mozzi_fixmath.h。我注释掉了cpp文件中的定义,它编译了。
https://stackoverflow.com/questions/59437892
复制相似问题