Open eduardoarantes opened 3 years ago
I am creating a project and I am getting the error below.
The environment is Mac, PlatformIO and Arduino Uno.
What is wrong?
> Executing task in folder universal_remote_control: pio test --environment uno < Verbose mode can be enabled via `-v, --verbose` option Collected 1 items Processing * in uno environment -------------------------------------------------------------------------------------------------------------------------------------------------- Building... In file included from .pio/libdeps/uno/IonDB/src/cpp_wrapper/../dictionary/../file/sd_stdio_c_iface.h:53:0, from .pio/libdeps/uno/IonDB/src/cpp_wrapper/../dictionary/ion_master_table.h:55, from .pio/libdeps/uno/IonDB/src/cpp_wrapper/Dictionary.h:44, from .pio/libdeps/uno/IonDB/src/IonDB.h:41, from lib/UniversalRemoteControl/src/IUniversalRemoteControl.h:6, from test/UniversalRemoteControlTest.cpp:2: .pio/libdeps/uno/IonDB/src/cpp_wrapper/../dictionary/../file/kv_stdio_intercept.h:66:0: warning: "feof" redefined #define feof(x) sd_feof(x) ^ In file included from .pio/libdeps/uno/IonDB/src/key_value/kv_system.h:44:0, from .pio/libdeps/uno/IonDB/src/IonDB.h:40, from lib/UniversalRemoteControl/src/IUniversalRemoteControl.h:6, from test/UniversalRemoteControlTest.cpp:2: /Users/eduardo/.platformio/packages/toolchain-atmelavr/avr/include/stdio.h:863:0: note: this is the location of the previous definition #define feof(s) ((s)->flags & __SEOF) ^ In file included from /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/Arduino.h:232:0, from .pio/libdeps/uno/IonDB/src/cpp_wrapper/../dictionary/../file/sd_stdio_c_iface.h:47, from .pio/libdeps/uno/IonDB/src/cpp_wrapper/../dictionary/ion_master_table.h:55, from .pio/libdeps/uno/IonDB/src/cpp_wrapper/Dictionary.h:44, from .pio/libdeps/uno/IonDB/src/IonDB.h:41, from lib/UniversalRemoteControl/src/IUniversalRemoteControl.h:6, from test/UniversalRemoteControlTest.cpp:2: /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:126:83: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, const char*)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const char *cstr); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:125:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, const String&)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const String &rhs); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:127:73: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, char)' friend StringSumHelper & operator + (const StringSumHelper &lhs, char c); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:126:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, const char*)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const char *cstr); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:127:73: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, char)' friend StringSumHelper & operator + (const StringSumHelper &lhs, char c); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:125:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, const String&)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const String &rhs); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:128:84: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, unsigned char)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned char num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:127:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, char)' friend StringSumHelper & operator + (const StringSumHelper &lhs, char c); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:128:84: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, unsigned char)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned char num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:126:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, const char*)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const char *cstr); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:128:84: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, unsigned char)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned char num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:125:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, const String&)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const String &rhs); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:129:74: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, int num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:128:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, unsigned char)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned char num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:129:74: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, int num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:127:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, char)' friend StringSumHelper & operator + (const StringSumHelper &lhs, char c); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:129:74: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, int num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:126:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, const char*)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const char *cstr); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:129:74: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, int num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:125:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, const String&)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const String &rhs); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:130:83: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, unsigned int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned int num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:129:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, int num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:130:83: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, unsigned int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned int num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:128:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, unsigned char)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned char num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:130:83: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, unsigned int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned int num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:127:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, char)' friend StringSumHelper & operator + (const StringSumHelper &lhs, char c); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:130:83: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, unsigned int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned int num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:126:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, const char*)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const char *cstr); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:130:83: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, unsigned int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned int num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:125:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, const String&)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const String &rhs); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:131:75: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, long int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, long num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:130:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, unsigned int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned int num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:131:75: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, long int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, long num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:129:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, int num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:131:75: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, long int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, long num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:128:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, unsigned char)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned char num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:131:75: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, long int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, long num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:127:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, char)' friend StringSumHelper & operator + (const StringSumHelper &lhs, char c); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:131:75: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, long int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, long num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:126:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, const char*)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const char *cstr); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:131:75: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, long int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, long num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:125:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, const String&)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const String &rhs); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:132:84: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, long unsigned int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned long num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:131:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, long int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, long num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:132:84: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, long unsigned int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned long num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:130:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, unsigned int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned int num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:132:84: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, long unsigned int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned long num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:129:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, int num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:132:84: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, long unsigned int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned long num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:128:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, unsigned char)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned char num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:132:84: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, long unsigned int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned long num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:127:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, char)' friend StringSumHelper & operator + (const StringSumHelper &lhs, char c); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:132:84: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, long unsigned int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned long num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:126:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, const char*)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const char *cstr); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:132:84: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, long unsigned int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned long num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:125:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, const String&)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const String &rhs); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:133:76: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, float)' friend StringSumHelper & operator + (const StringSumHelper &lhs, float num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:132:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, long unsigned int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned long num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:133:76: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, float)' friend StringSumHelper & operator + (const StringSumHelper &lhs, float num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:131:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, long int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, long num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:133:76: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, float)' friend StringSumHelper & operator + (const StringSumHelper &lhs, float num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:130:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, unsigned int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned int num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:133:76: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, float)' friend StringSumHelper & operator + (const StringSumHelper &lhs, float num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:129:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, int num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:133:76: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, float)' friend StringSumHelper & operator + (const StringSumHelper &lhs, float num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:128:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, unsigned char)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned char num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:133:76: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, float)' friend StringSumHelper & operator + (const StringSumHelper &lhs, float num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:127:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, char)' friend StringSumHelper & operator + (const StringSumHelper &lhs, char c); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:133:76: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, float)' friend StringSumHelper & operator + (const StringSumHelper &lhs, float num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:126:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, const char*)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const char *cstr); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:133:76: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, float)' friend StringSumHelper & operator + (const StringSumHelper &lhs, float num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:125:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, const String&)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const String &rhs); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:134:77: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, double)' friend StringSumHelper & operator + (const StringSumHelper &lhs, double num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:133:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, float)' friend StringSumHelper & operator + (const StringSumHelper &lhs, float num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:134:77: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, double)' friend StringSumHelper & operator + (const StringSumHelper &lhs, double num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:132:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, long unsigned int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned long num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:134:77: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, double)' friend StringSumHelper & operator + (const StringSumHelper &lhs, double num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:131:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, long int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, long num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:134:77: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, double)' friend StringSumHelper & operator + (const StringSumHelper &lhs, double num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:130:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, unsigned int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned int num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:134:77: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, double)' friend StringSumHelper & operator + (const StringSumHelper &lhs, double num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:129:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, int num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:134:77: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, double)' friend StringSumHelper & operator + (const StringSumHelper &lhs, double num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:128:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, unsigned char)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned char num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:134:77: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, double)' friend StringSumHelper & operator + (const StringSumHelper &lhs, double num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:127:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, char)' friend StringSumHelper & operator + (const StringSumHelper &lhs, char c); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:134:77: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, double)' friend StringSumHelper & operator + (const StringSumHelper &lhs, double num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:126:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, const char*)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const char *cstr); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:134:77: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, double)' friend StringSumHelper & operator + (const StringSumHelper &lhs, double num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:125:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, const String&)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const String &rhs); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:135:97: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, const __FlashStringHelper*)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const __FlashStringHelper *rhs); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:134:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, double)' friend StringSumHelper & operator + (const StringSumHelper &lhs, double num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:135:97: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, const __FlashStringHelper*)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const __FlashStringHelper *rhs); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:133:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, float)' friend StringSumHelper & operator + (const StringSumHelper &lhs, float num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:135:97: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, const __FlashStringHelper*)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const __FlashStringHelper *rhs); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:132:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, long unsigned int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned long num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:135:97: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, const __FlashStringHelper*)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const __FlashStringHelper *rhs); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:131:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, long int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, long num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:135:97: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, const __FlashStringHelper*)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const __FlashStringHelper *rhs); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:130:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, unsigned int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned int num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:135:97: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, const __FlashStringHelper*)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const __FlashStringHelper *rhs); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:129:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, int)' friend StringSumHelper & operator + (const StringSumHelper &lhs, int num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:135:97: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, const __FlashStringHelper*)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const __FlashStringHelper *rhs); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:128:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, unsigned char)' friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned char num); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:135:97: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, const __FlashStringHelper*)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const __FlashStringHelper *rhs); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:127:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, char)' friend StringSumHelper & operator + (const StringSumHelper &lhs, char c); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:135:97: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, const __FlashStringHelper*)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const __FlashStringHelper *rhs); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:126:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, const char*)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const char *cstr); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:135:97: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, const __FlashStringHelper*)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const __FlashStringHelper *rhs); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/WString.h:125:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, const String&)' friend StringSumHelper & operator + (const StringSumHelper &lhs, const String &rhs); ^ In file included from .pio/libdeps/uno/IonDB/src/cpp_wrapper/../dictionary/../file/sd_stdio_c_iface.h:47:0, from .pio/libdeps/uno/IonDB/src/cpp_wrapper/../dictionary/ion_master_table.h:55, from .pio/libdeps/uno/IonDB/src/cpp_wrapper/Dictionary.h:44, from .pio/libdeps/uno/IonDB/src/IonDB.h:41, from lib/UniversalRemoteControl/src/IUniversalRemoteControl.h:6, from test/UniversalRemoteControlTest.cpp:2: /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/Arduino.h:240:33: error: conflicting declaration of C function 'uint16_t makeWord(byte, byte)' uint16_t makeWord(byte h, byte l); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/Arduino.h:239:10: note: previous declaration 'uint16_t makeWord(uint16_t)' uint16_t makeWord(uint16_t w); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/Arduino.h:251:17: error: conflicting declaration of C function 'long int random(long int)' long random(long); ^ In file included from .pio/libdeps/uno/IonDB/src/key_value/kv_system.h:45:0, from .pio/libdeps/uno/IonDB/src/IonDB.h:40, from lib/UniversalRemoteControl/src/IUniversalRemoteControl.h:6, from test/UniversalRemoteControlTest.cpp:2: /Users/eduardo/.platformio/packages/toolchain-atmelavr/avr/include/stdlib.h:590:13: note: previous declaration 'long int random()' extern long random(void); ^ In file included from .pio/libdeps/uno/IonDB/src/cpp_wrapper/../dictionary/../file/sd_stdio_c_iface.h:47:0, from .pio/libdeps/uno/IonDB/src/cpp_wrapper/../dictionary/ion_master_table.h:55, from .pio/libdeps/uno/IonDB/src/cpp_wrapper/Dictionary.h:44, from .pio/libdeps/uno/IonDB/src/IonDB.h:41, from lib/UniversalRemoteControl/src/IUniversalRemoteControl.h:6, from test/UniversalRemoteControlTest.cpp:2: /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/Arduino.h:252:23: error: conflicting declaration of C function 'long int random(long int, long int)' long random(long, long); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/Arduino.h:251:6: note: previous declaration 'long int random(long int)' long random(long); ^ /Users/eduardo/.platformio/packages/framework-arduino-avr/cores/arduino/Arduino.h:252:23: error: conflicting declaration of C function 'long int random(long int, long int)' long random(long, long); ^ In file included from .pio/libdeps/uno/IonDB/src/key_value/kv_system.h:45:0, from .pio/libdeps/uno/IonDB/src/IonDB.h:40, from lib/UniversalRemoteControl/src/IUniversalRemoteControl.h:6, from test/UniversalRemoteControlTest.cpp:2: /Users/eduardo/.platformio/packages/toolchain-atmelavr/avr/include/stdlib.h:590:13: note: previous declaration 'long int random()' extern long random(void); ^ *** [.pio/build/uno/test/UniversalRemoteControlTest.cpp.o] Error 1 =========================================================== [FAILED] Took 1.24 seconds =========================================================== Test Environment Status Duration ------ ------------- -------- ------------ * uno FAILED 00:00:01.241 ===================================================== 1 failed, 0 succeeded in 00:00:01.241 ===================================================== The terminal process "pio 'test', '--environment', 'uno'" terminated with exit code: 1. Terminal will be reused by tasks, press any key to close it.
Same here
I am creating a project and I am getting the error below.
The environment is Mac, PlatformIO and Arduino Uno.
What is wrong?