|
本帖最后由 honyfox 于 2013-10-19 21:24 编辑
按乐联网教程代码学习,编译LeweiTcpClient的时候,原文件报错如下,求分析,谢谢!
http://www.lewei50.com/dev/doc/142
Arduino: 1.5.4 (Windows 7), Board: "Arduino Uno"
LeweiTcpClient.ino: In function 'void setup()':
LeweiTcpClient:39: error: call of overloaded 'UserFunction(void (&)(char*, char*, char*), const char [14])' is ambiguous
D:\Program Files\Arduino-1.1.5.4-r2\libraries\LeweiTcpClientLite/LeweiTcpClient.h:36: note: candidates are: UserFunction::UserFunction(void (*)(char*, char*), const char*) <near match>
D:\Program Files\Arduino-1.1.5.4-r2\libraries\LeweiTcpClientLite/LeweiTcpClient.h:35: note: UserFunction::UserFunction(void (*)(char*), const char*) <near match>
D:\Program Files\Arduino-1.1.5.4-r2\libraries\LeweiTcpClientLite/LeweiTcpClient.h:34: note: UserFunction::UserFunction(void (*)(), const char*) <near match>
LeweiTcpClient:41: error: call of overloaded 'UserFunction(void (&)(char*, char*, char*, char*), const char [14])' is ambiguous
D:\Program Files\Arduino-1.1.5.4-r2\libraries\LeweiTcpClientLite/LeweiTcpClient.h:36: note: candidates are: UserFunction::UserFunction(void (*)(char*, char*), const char*) <near match>
D:\Program Files\Arduino-1.1.5.4-r2\libraries\LeweiTcpClientLite/LeweiTcpClient.h:35: note: UserFunction::UserFunction(void (*)(char*), const char*) <near match>
D:\Program Files\Arduino-1.1.5.4-r2\libraries\LeweiTcpClientLite/LeweiTcpClient.h:34: note: UserFunction::UserFunction(void (*)(), const char*) <near match>
LeweiTcpClient:43: error: call of overloaded 'UserFunction(void (&)(char*, char*, char*, char*, char*), const char [14])' is ambiguous
D:\Program Files\Arduino-1.1.5.4-r2\libraries\LeweiTcpClientLite/LeweiTcpClient.h:36: note: candidates are: UserFunction::UserFunction(void (*)(char*, char*), const char*) <near match>
D:\Program Files\Arduino-1.1.5.4-r2\libraries\LeweiTcpClientLite/LeweiTcpClient.h:35: note: UserFunction::UserFunction(void (*)(char*), const char*) <near match>
D:\Program Files\Arduino-1.1.5.4-r2\libraries\LeweiTcpClientLite/LeweiTcpClient.h:34: note: UserFunction::UserFunction(void (*)(), const char*) <near match>
LeweiTcpClient:51: error: 'UserSwitch' was not declared in this scope
LeweiTcpClient:51: error: expected `;' before 'us1'
LeweiTcpClient:52: error: 'class LeweiTcpClient' has no member named 'addUserSwitch'
LeweiTcpClient:52: error: 'us1' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
|
|