Open
Description
When compiling the following sketch,
#include <ArduinoSTL.h>
void setup() {}
void loop() {}
this error is raised:
arduino-cli compile --fqbn arduino:avr:pro --warnings all --output-dir build \
--build-property compiler.cpp.extra_flags="-pedantic"
new.cpp.o (symbol from plugin): In function `operator new(unsigned int)':
(.text+0x0): multiple definition of `std::nothrow'
/tmp/arduino-sketch-DAE3E2C59CB46B47AC6BC234B0EB1886/libraries/ArduinoSTL/new_handler.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
Commenting out line 22 of src/new_handler.cpp
seems to fix the issue, but this perhaps introduces other problems.
My set up:
- arduino-cli Version: 0.25.1 Commit: 436f0bb9 Date: 2022-07-25T15:01:55Z
- ArduinoSTL version 1.3.3
- arduino:avr core version 1.8.5
This issue can be reproduced in the Wokwi simulator.
Metadata
Metadata
Assignees
Labels
No labels