|
Arduino:1.8.13 (Windows 10), 开发板:"Arduino Nano, ATmega328P (Old Bootloader)"
libraries\OTTO.V9\Oscillator.cpp.o (symbol from plugin): In function `Oscillator::next_sample()':
(.text+0x0): multiple definition of `Oscillator::next_sample()'
libraries\OttoArduinoLib\Oscillator.cpp.o (symbol from plugin).text+0x0): first defined here
libraries\OTTO.V9\Oscillator.cpp.o (symbol from plugin): In function `Oscillator::next_sample()':
(.text+0x0): multiple definition of `Oscillator::attach(int, bool)'
libraries\OttoArduinoLib\Oscillator.cpp.o (symbol from plugin).text+0x0): first defined here
libraries\OTTO.V9\Oscillator.cpp.o (symbol from plugin): In function `Oscillator::next_sample()':
(.text+0x0): multiple definition of `Oscillator::detach()'
libraries\OttoArduinoLib\Oscillator.cpp.o (symbol from plugin).text+0x0): first defined here
libraries\OTTO.V9\Oscillator.cpp.o (symbol from plugin): In function `Oscillator::next_sample()':
(.text+0x0): multiple definition of `Oscillator::SetT(unsigned int)'
libraries\OttoArduinoLib\Oscillator.cpp.o (symbol from plugin).text+0x0): first defined here
libraries\OTTO.V9\Oscillator.cpp.o (symbol from plugin): In function `Oscillator::next_sample()':
(.text+0x0): multiple definition of `Oscillator::refresh()'
libraries\OttoArduinoLib\Oscillator.cpp.o (symbol from plugin).text+0x0): first defined here
libraries\OTTO.V9\US.cpp.o (symbol from plugin): In function `US::US()':
(.text+0x0): multiple definition of `US::US()'
libraries\OttoArduinoLib\US.cpp.o (symbol from plugin).text+0x0): first defined here
libraries\OTTO.V9\US.cpp.o (symbol from plugin): In function `US::US()':
(.text+0x0): multiple definition of `US::US()'
libraries\OttoArduinoLib\US.cpp.o (symbol from plugin).text+0x0): first defined here
libraries\OTTO.V9\US.cpp.o (symbol from plugin): In function `US::US()':
(.text+0x0): multiple definition of `US::init(int, int)'
libraries\OttoArduinoLib\US.cpp.o (symbol from plugin).text+0x0): first defined here
libraries\OTTO.V9\US.cpp.o (symbol from plugin): In function `US::US()':
(.text+0x0): multiple definition of `US::US(int, int)'
libraries\OttoArduinoLib\US.cpp.o (symbol from plugin).text+0x0): first defined here
libraries\OTTO.V9\US.cpp.o (symbol from plugin): In function `US::US()':
(.text+0x0): multiple definition of `US::US(int, int)'
libraries\OttoArduinoLib\US.cpp.o (symbol from plugin).text+0x0): first defined here
libraries\OTTO.V9\US.cpp.o (symbol from plugin): In function `US::US()':
(.text+0x0): multiple definition of `US::TP_init()'
libraries\OttoArduinoLib\US.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\OTTO.V9\US.cpp.o (symbol from plugin): In function `US::US()':
(.text+0x0): multiple definition of `US::read()'
libraries\OttoArduinoLib\US.cpp.o (symbol from plugin):(.text+0x0): first defined here
C:\Users\yyp\Documents\Arduino\libraries\OttoArduinoLib\src/Oscillator.h:19:7: warning: type 'struct Oscillator' violates the C++ One Definition Rule [-Wodr]
class Oscillator
^
C:\Users\yyp\Documents\Arduino\libraries\OTTO.V9\Oscillator.h:18:7: note: a different type is defined in another translation unit
class Oscillator
^
C:\Users\yyp\Documents\Arduino\libraries\OttoArduinoLib\src/Oscillator.h:46:13: note: the first difference of corresponding definitions is field '_A'
int16_t _A; //-- Amplitude (degrees)
^
C:\Users\yyp\Documents\Arduino\libraries\OTTO.V9\Oscillator.h:45:18: note: a field of same name but different type is defined in another translation unit
unsigned int _A; //-- Amplitude (degrees)
^
c:\program files (x86)\arduino\hardware\tools\avr\avr\include\stdint.h:127:20: note: type 'int16_t' should match type 'unsigned int'
typedef signed int int16_t __attribute__ ((__mode__ (__HI__)));
^
C:\Users\yyp\Documents\Arduino\libraries\OTTO.V9\Oscillator.cpp:106:6: warning: 'refresh' violates the C++ One Definition Rule [-Wodr]
void Oscillator::refresh()
^
C:\Users\yyp\Documents\Arduino\libraries\OttoArduinoLib\src\Oscillator.cpp:106:6: note: implicit this pointer type mismatch
void Oscillator::refresh()
^
C:\Users\yyp\Documents\Arduino\libraries\OttoArduinoLib\src/Oscillator.h:19:7: note: type 'struct Oscillator' itself violates the C++ One Definition Rule
class Oscillator
^
C:\Users\yyp\Documents\Arduino\libraries\OTTO.V9\Oscillator.h:18:7: note: the incompatible type is defined here
class Oscillator
^
C:\Users\yyp\Documents\Arduino\libraries\OttoArduinoLib\src\Oscillator.cpp:106:6: note: 'refresh' was previously declared here
void Oscillator::refresh()
^
C:\Users\yyp\Documents\Arduino\libraries\OttoArduinoLib\src\Oscillator.cpp:106:6: note: code may be misoptimized unless -fno-strict-aliasing is used
C:\Users\yyp\Documents\Arduino\libraries\OTTO.V9\Oscillator.cpp:81:6: warning: 'SetT' violates the C++ One Definition Rule [-Wodr]
void Oscillator::SetT(unsigned int T)
^
C:\Users\yyp\Documents\Arduino\libraries\OttoArduinoLib\src\Oscillator.cpp:81:6: note: implicit this pointer type mismatch
void Oscillator::SetT(uint16_t T)
^
C:\Users\yyp\Documents\Arduino\libraries\OttoArduinoLib\src/Oscillator.h:19:7: note: type 'struct Oscillator' itself violates the C++ One Definition Rule
class Oscillator
^
C:\Users\yyp\Documents\Arduino\libraries\OTTO.V9\Oscillator.h:18:7: note: the incompatible type is defined here
class Oscillator
^
C:\Users\yyp\Documents\Arduino\libraries\OttoArduinoLib\src\Oscillator.cpp:81:6: note: 'SetT' was previously declared here
void Oscillator::SetT(uint16_t T)
^
C:\Users\yyp\Documents\Arduino\libraries\OttoArduinoLib\src\Oscillator.cpp:81:6: note: code may be misoptimized unless -fno-strict-aliasing is used
C:\Users\yyp\Documents\Arduino\libraries\OTTO.V9\Oscillator.cpp:70:6: warning: 'detach' violates the C++ One Definition Rule [-Wodr]
void Oscillator::detach()
^
C:\Users\yyp\Documents\Arduino\libraries\OttoArduinoLib\src\Oscillator.cpp:70:6: note: implicit this pointer type mismatch
void Oscillator::detach()
^
C:\Users\yyp\Documents\Arduino\libraries\OttoArduinoLib\src/Oscillator.h:19:7: note: type 'struct Oscillator' itself violates the C++ One Definition Rule
class Oscillator
^
C:\Users\yyp\Documents\Arduino\libraries\OTTO.V9\Oscillator.h:18:7: note: the incompatible type is defined here
class Oscillator
^
C:\Users\yyp\Documents\Arduino\libraries\OttoArduinoLib\src\Oscillator.cpp:70:6: note: 'detach' was previously declared here
void Oscillator::detach()
^
C:\Users\yyp\Documents\Arduino\libraries\OttoArduinoLib\src\Oscillator.cpp:70:6: note: code may be misoptimized unless -fno-strict-aliasing is used
C:\Users\yyp\Documents\Arduino\libraries\OTTO.V9\Oscillator.cpp:39:6: warning: 'attach' violates the C++ One Definition Rule [-Wodr]
void Oscillator::attach(int pin, bool rev)
^
C:\Users\yyp\Documents\Arduino\libraries\OttoArduinoLib\src\Oscillator.cpp:39:6: note: implicit this pointer type mismatch
void Oscillator::attach(int pin, bool rev)
^
C:\Users\yyp\Documents\Arduino\libraries\OttoArduinoLib\src/Oscillator.h:19:7: note: type 'struct Oscillator' itself violates the C++ One Definition Rule
class Oscillator
^
C:\Users\yyp\Documents\Arduino\libraries\OTTO.V9\Oscillator.h:18:7: note: the incompatible type is defined here
class Oscillator
^
C:\Users\yyp\Documents\Arduino\libraries\OttoArduinoLib\src\Oscillator.cpp:39:6: note: 'attach' was previously declared here
void Oscillator::attach(int pin, bool rev)
^
C:\Users\yyp\Documents\Arduino\libraries\OttoArduinoLib\src\Oscillator.cpp:39:6: note: code may be misoptimized unless -fno-strict-aliasing is used
C:\Users\yyp\Documents\Arduino\libraries\OTTO.V9\Oscillator.cpp:20:6: warning: 'next_sample' violates the C++ One Definition Rule [-Wodr]
bool Oscillator::next_sample()
^
C:\Users\yyp\Documents\Arduino\libraries\OttoArduinoLib\src\Oscillator.cpp:20:6: note: implicit this pointer type mismatch
bool Oscillator::next_sample()
^
C:\Users\yyp\Documents\Arduino\libraries\OttoArduinoLib\src/Oscillator.h:19:7: note: type 'struct Oscillator' itself violates the C++ One Definition Rule
class Oscillator
^
C:\Users\yyp\Documents\Arduino\libraries\OTTO.V9\Oscillator.h:18:7: note: the incompatible type is defined here
class Oscillator
^
"Servo.h" 对应多个库
C:\Users\yyp\Documents\Arduino\libraries\OttoArduinoLib\src\Oscillator.cpp:20:6: note: 'next_sample' was previously declared here
bool Oscillator::next_sample()
^
已使用: C:\Users\yyp\Documents\Arduino\libraries\Servo
未使用:C:\Program Files (x86)\Arduino\libraries\Servo
"Oscillator.h" 对应多个库
C:\Users\yyp\Documents\Arduino\libraries\OttoArduinoLib\src\Oscillator.cpp:20:6: note: code may be misoptimized unless -fno-strict-aliasing is used
已使用: C:\Users\yyp\Documents\Arduino\libraries\OttoArduinoLib
C:\Users\yyp\AppData\Local\Temp\cci4Es7e.ltrans0.ltrans.o: In function `setup':
未使用:C:\Users\yyp\Documents\Arduino\libraries\OTTO.V9
D:\DIY\otto-diy\otto-diy-plus\Codes\OttoPLUS_touchultrasound_V9/OttoPLUS_touchultrasound_V9.ino:53: undefined reference to `Otto9Humanoid::init(int, int, int, int, bool, int, int, int, int)'
collect2.exe: error: ld returned 1 exit status
exit status 1
为开发板 Arduino Nano 编译时出错。
在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
|
|