ArduinoSTL icon indicating copy to clipboard operation
ArduinoSTL copied to clipboard

Doesn't compile with Arduino Nano 33 BLE (Nordic nRF52 platform)

Open Rafdal opened this issue 2 years ago • 0 comments

Exactly what the title says, It doesn't compile with a simple empty program.

I get +500 compile errores but here are some:

.pio/libdeps/nano33ble/ArduinoSTL/src/cstdlib:44:10: error: '::realloc' has not been declared
  using ::realloc;
          ^~~~~~~
.pio/libdeps/nano33ble/ArduinoSTL/src/cstdlib:45:10: error: '::srand' has not been declared
  using ::srand;
          ^~~~~
.pio/libdeps/nano33ble/ArduinoSTL/src/cstdlib:46:10: error: '::strtod' has not been declared

/home/rafdal/.platformio/packages/framework-arduino-mbed/cores/arduino/mbed/platform/cxxsupport/mstd_type_traits:398:36: error: there are no arguments to 'INVOKE' that depend on a template parameter, so a declaration of 'INVOKE' must be available [-fpermissive]
 struct invoke_result<decltype(void(INVOKE(std::declval<F>(), std::declval<Args>()...))), F, Args...> :
                                    ^~~~~~
/home/rafdal/.platformio/packages/framework-arduino-mbed/cores/arduino/mbed/platform/cxxsupport/mstd_type_traits:398:48: error: 'declval' is not a member of 'std'
 struct invoke_result<decltype(void(INVOKE(std::declval<F>(), std::declval<Args>()...))), F, Args...> :

Rafdal avatar Dec 02 '22 04:12 Rafdal