9671| 7
|
[求助] 气象站程序编译错误,求助 |
气象站的程序编译错误,小弟新手求打救,错误信息如下 Arduino:1.6.7 (Windows 10), 开发板:"LilyPad Arduino USB" In file included from C:\Program Files (x86)\Arduino\libraries\WeatherStation\example\example.ino:26:0: C:\Program Files (x86)\Arduino\libraries\public/public.h:64:0: warning: "INT16_MIN" redefined [enabled by default] #define INT16_MIN -32768 ^ In file included from c:\program files (x86)\arduino\hardware\tools\avr\lib\gcc\avr\4.8.1\include\stdint.h:9:0, from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\inttypes.h:37, from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:86, from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28, from sketch\example.ino.cpp:1: c:\program files (x86)\arduino\hardware\tools\avr\avr\include\stdint.h:332:0: note: this is the location of the previous definition #define INT16_MIN (-INT16_MAX - 1) ^ In file included from C:\Program Files (x86)\Arduino\libraries\WeatherStation\example\example.ino:26:0: C:\Program Files (x86)\Arduino\libraries\public/public.h:65:0: warning: "INT16_MAX" redefined [enabled by default] #define INT16_MAX 32767 ^ In file included from c:\program files (x86)\arduino\hardware\tools\avr\lib\gcc\avr\4.8.1\include\stdint.h:9:0, from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\inttypes.h:37, from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:86, from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28, from sketch\example.ino.cpp:1: c:\program files (x86)\arduino\hardware\tools\avr\avr\include\stdint.h:327:0: note: this is the location of the previous definition #define INT16_MAX 0x7fff ^ In file included from C:\Program Files (x86)\Arduino\libraries\WeatherStation\WeatherStation.cpp:35:0: C:\Program Files (x86)\Arduino\libraries\public/public.h:64:0: warning: "INT16_MIN" redefined [enabled by default] #define INT16_MIN -32768 ^ In file included from c:\program files (x86)\arduino\hardware\tools\avr\lib\gcc\avr\4.8.1\include\stdint.h:9:0, from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\inttypes.h:37, from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\sfr_defs.h:126, from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99, from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\sleep.h:38, from C:\Program Files (x86)\Arduino\libraries\WeatherStation\WeatherStation.cpp:32: c:\program files (x86)\arduino\hardware\tools\avr\avr\include\stdint.h:332:0: note: this is the location of the previous definition #define INT16_MIN (-INT16_MAX - 1) ^ In file included from C:\Program Files (x86)\Arduino\libraries\WeatherStation\WeatherStation.cpp:35:0: C:\Program Files (x86)\Arduino\libraries\public/public.h:65:0: warning: "INT16_MAX" redefined [enabled by default] #define INT16_MAX 32767 ^ In file included from c:\program files (x86)\arduino\hardware\tools\avr\lib\gcc\avr\4.8.1\include\stdint.h:9:0, from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\inttypes.h:37, from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\sfr_defs.h:126, from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99, from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\sleep.h:38, from C:\Program Files (x86)\Arduino\libraries\WeatherStation\WeatherStation.cpp:32: c:\program files (x86)\arduino\hardware\tools\avr\avr\include\stdint.h:327:0: note: this is the location of the previous definition #define INT16_MAX 0x7fff ^ C:\Program Files (x86)\Arduino\libraries\WeatherStation\WeatherStation.cpp: In member function 'void WeatherStation::displayNext()': C:\Program Files (x86)\Arduino\libraries\WeatherStation\WeatherStation.cpp:474:40: error: invalid initialization of reference of type 'uint8_t& {aka unsigned char&}' from expression of type 'boolean {aka bool}' uint8_t &dateShowFlag = displayMgt.dateShowFlag; ^ C:\Program Files (x86)\Arduino\libraries\WeatherStation\WeatherStation.cpp: In member function 'void DataWarehouse::init(uint16_t, uint8_t, uint8_t, uint8_t)': C:\Program Files (x86)\Arduino\libraries\WeatherStation\WeatherStation.cpp:1188:73: warning: large integer implicitly truncated to unsigned type [-Woverflow] eeprom_write_byte( (uint8_t *)STORE_ADDR_VALIDFLAG, ~DATA_VALID ); ^ C:\Program Files (x86)\Arduino\libraries\WeatherStation\WeatherStation.cpp: In member function 'void DataWarehouse::updateDate(uint16_t, uint8_t, uint8_t)': C:\Program Files (x86)\Arduino\libraries\WeatherStation\WeatherStation.cpp:1282:69: warning: large integer implicitly truncated to unsigned type [-Woverflow] eeprom_write_byte( (uint8_t *)STORE_ADDR_VALIDFLAG, ~DATA_VALID ); ^ C:\Program Files (x86)\Arduino\libraries\WeatherStation\WeatherStation.cpp: In member function 'void DataWarehouse::putData(int16_t, uint8_t, uint8_t)': C:\Program Files (x86)\Arduino\libraries\WeatherStation\WeatherStation.cpp:1361:69: warning: large integer implicitly truncated to unsigned type [-Woverflow] eeprom_write_byte( (uint8_t *)STORE_ADDR_VALIDFLAG, ~DATA_VALID ); ^ exit status 1 编译有误。 报告将会包含更多的信息 "在编译时,输出详细信息" 在 文件>首选项 中启用 |
100.17 KB, 下载次数: 2606
© 2013-2024 Comsenz Inc. Powered by Discuz! X3.4 Licensed