@maxgerhardt,
there are. It was just pasting here that was wrong. Tks
See the error below.
Both environments fail with different errors
> Executing task in folder universal_remote_control: pio test <
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: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.13 seconds ===================================================================
Processing * in native environment
------------------------------------------------------------------------------------------------------------------------------------------------------------------
Building...
In file included from lib/UniversalRemoteControl/src/UniversalRemoteControl.cpp:1:
lib/UniversalRemoteControl/src/IUniversalRemoteControl.h:6:10: fatal error: 'IonDB.h' file not found
#include <IonDB.h>
^~~~~~~~~
1 error generated.
*** [.pio/build/native/lib358/UniversalRemoteControl/UniversalRemoteControl.o] Error 1
In file included from test/UniversalRemoteControlTest.cpp:2:
lib/UniversalRemoteControl/src/IUniversalRemoteControl.h:6:10: fatal error: 'IonDB.h' file not found
#include <IonDB.h>
^~~~~~~~~
1 error generated.
*** [.pio/build/native/test/UniversalRemoteControlTest.o] Error 1
=================================================================== [FAILED] Took 0.63 seconds ===================================================================
Test Environment Status Duration
------ ------------- -------- ------------
* uno FAILED 00:00:01.127
* native FAILED 00:00:00.633
============================================================= 2 failed, 0 succeeded in 00:00:01.760 =============================================================
The terminal process "pio 'test'" terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.
What is interesting is that the build passes: (if fails on Native because it misses Arduino.h, but that kind of makes sense)
Building in release mode
Compiling .pio/build/native/src/main.o
src/main.cpp:1:10: fatal error: 'Arduino.h' file not found
#include <Arduino.h>
^~~~~~~~~~~
1 error generated.
*** [.pio/build/native/src/main.o] Error 1
================================================================== [FAILED] Took 0.46 seconds ==================================================================
Environment Status Duration
------------- -------- ------------
uno SUCCESS 00:00:04.685
native FAILED 00:00:00.456
============================================================ 1 failed, 1 succeeded in 00:00:05.141 ============================================================
The terminal process "pio 'run'" terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.