maniacbug / StandardCplusplus

Standard C++ for Arduino (port of uClibc++)
594 stars 182 forks source link

Error in compiling #38

Closed daT7F4 closed 5 months ago

daT7F4 commented 5 months ago
In file included from /Users/admin/Documents/Arduino/libraries/StandardCplusplus-master/new_handler.cpp:20:0:
/Users/admin/Documents/Arduino/libraries/StandardCplusplus-master/new:40:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
 _UCXXEXPORT void* operator new(std::size_t numBytes) throw(std::bad_alloc);
                                                      ^~~~~
/Users/admin/Documents/Arduino/libraries/StandardCplusplus-master/new:43:56: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
 _UCXXEXPORT void* operator new[](std::size_t numBytes) throw(std::bad_alloc);
                                                        ^~~~~
new.cpp.o (symbol from plugin): In function `operator new(unsigned int)':
(.text+0x0): multiple definition of `std::nothrow'
/private/var/folders/mb/nng_3qf95xxd10qqzdty9kwh0000gn/T/arduino/sketches/E464A36164C06FF94D4FA988E81A7018/libraries/StandardCplusplus-master/new_handler.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1
daT7F4 commented 5 months ago

Solved by commenting all of new_handler.cpp