mike-matera / ArduinoSTL

An STL and iostream implementation based on uClibc++ that supports my CS-11M class.
GNU General Public License v3.0
325 stars 80 forks source link

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

Open Rafdal opened 1 year ago

Rafdal commented 1 year ago

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...> :
Ebola-Chan-bot commented 2 weeks ago

See library.properties. This library only supports AVR architecture. Your hardware is NRF52840 architecture, which is not currently supported.