为开发板 Arduino Nano 编译时出错-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 412|回复: 2

[未解决] 为开发板 Arduino Nano 编译时出错

[复制链接]
发表于 2022-9-20 13:08 | 显示全部楼层 |阅读模式
Arduino:1.8.19 (Windows 10), 开发板:"Arduino Nano, ATmega328P"


C:\Users\AWRT\Desktop\woodbox v1.7\woodbox\woodbox.ino:24:0: warning: "SERVO" redefined


#define SERVO 12    //舵机





In file included from C:\Program Files\Arduino\libraries\Adafruit_Circuit_Playground/Adafruit_Circuit_Playground.h:25:0,


                 from C:\Program Files\Arduino\libraries\Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.h:3,


                 from C:\Users\AWRT\Desktop\woodbox v1.7\woodbox\woodbox.ino:10:


C:\Program Files\Arduino\libraries\Adafruit_Circuit_Playground/utility/CP_Firmata.h:112:0: note: this is the location of the previous definition


#define SERVO                   0x04 // same as PIN_MODE_SERVO





In file included from C:\Users\AWRT\Desktop\woodbox v1.7\woodbox\woodbox.ino:1:0:


C:\Program Files\Arduino\libraries\Temboo\src/Temboo.h:86:43: error: expected identifier before '(' token


#define TEMBOO_ERROR_ACCOUNT_MISSING      (201)


                                           ^


C:\Program Files\Arduino\libraries\Temboo\src/TembooCoAPEdgeDevice.h:264:13: note: in expansion of macro 'TEMBOO_ERROR_ACCOUNT_MISSING'


             TEMBOO_ERROR_ACCOUNT_MISSING       = 201,


             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~


C:\Program Files\Arduino\libraries\Temboo\src/Temboo.h:86:43: error: expected '}' before '(' token


#define TEMBOO_ERROR_ACCOUNT_MISSING      (201)


                                           ^


C:\Program Files\Arduino\libraries\Temboo\src/TembooCoAPEdgeDevice.h:264:13: note: in expansion of macro 'TEMBOO_ERROR_ACCOUNT_MISSING'


             TEMBOO_ERROR_ACCOUNT_MISSING       = 201,


             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~


C:\Program Files\Arduino\libraries\Temboo\src/Temboo.h:86:44: error: expected unqualified-id before numeric constant


#define TEMBOO_ERROR_ACCOUNT_MISSING      (201)


                                            ^


C:\Program Files\Arduino\libraries\Temboo\src/TembooCoAPEdgeDevice.h:264:13: note: in expansion of macro 'TEMBOO_ERROR_ACCOUNT_MISSING'


             TEMBOO_ERROR_ACCOUNT_MISSING       = 201,


             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~


C:\Program Files\Arduino\libraries\Temboo\src/Temboo.h:86:44: error: expected ')' before numeric constant


#define TEMBOO_ERROR_ACCOUNT_MISSING      (201)


                                            ^


C:\Program Files\Arduino\libraries\Temboo\src/TembooCoAPEdgeDevice.h:264:13: note: in expansion of macro 'TEMBOO_ERROR_ACCOUNT_MISSING'


             TEMBOO_ERROR_ACCOUNT_MISSING       = 201,


             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~


In file included from C:\Users\AWRT\Desktop\woodbox v1.7\woodbox\woodbox.ino:2:0:


C:\Program Files\Arduino\libraries\Temboo\src/TembooCoAPEdgeDevice.h: In member function 'char* TembooCoAPChoreo::getResponseData()':


C:\Program Files\Arduino\libraries\Temboo\src/TembooCoAPEdgeDevice.h:247:41: error: 'm_respData' was not declared in this scope


         char* getResponseData() {return m_respData;}


                                         ^~~~~~~~~~


C:\Program Files\Arduino\libraries\Temboo\src/TembooCoAPEdgeDevice.h: In member function 'char* TembooCoAPChoreo::getHTTPResponseCode()':


C:\Program Files\Arduino\libraries\Temboo\src/TembooCoAPEdgeDevice.h:248:45: error: 'm_httpCodeStr' was not declared in this scope


         char* getHTTPResponseCode() {return m_httpCodeStr;}


                                             ^~~~~~~~~~~~~


C:\Program Files\Arduino\libraries\Temboo\src/TembooCoAPEdgeDevice.h: At global scope:


C:\Program Files\Arduino\libraries\Temboo\src/TembooCoAPEdgeDevice.h:277:5: error: expected unqualified-id before 'protected'


     protected:


     ^~~~~~~~~


C:\Program Files\Arduino\libraries\Temboo\src/TembooCoAPEdgeDevice.h:280:27: error: 'm_client' declared as reference but not initialized


         TembooCoAPClient& m_client;


                           ^~~~~~~~


C:\Program Files\Arduino\libraries\Temboo\src/TembooCoAPEdgeDevice.h:311:5: error: expected unqualified-id before 'protected'


     protected:


     ^~~~~~~~~


C:\Program Files\Arduino\libraries\Temboo\src/TembooCoAPEdgeDevice.h:314:1: error: expected declaration before '}' token


};


^


exit status 1


为开发板 Arduino Nano 编译时出错。




在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
发表于 2022-9-20 22:49 | 显示全部楼层
代码有问题,估计是}多了一个
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|Arduino中文社区

GMT+8, 2024-12-1 01:41 , Processed in 0.072186 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表