tttapa/Arduino-Helpers

Filtered Analog not compiling on ATMEGA64

callumcull opened this issue · 0 comments

The filtered analog example won't compile using ATMEGA64 (megacore) using Arduino IDE 2.

This is the output from the console:
c:\Users\Callum\Documents\Arduino\libraries\Arduino-Helpers-master\src\AH\STL\Fallback\new.cpp: In function 'void operator delete(void*, std::size_t)':
c:\Users\Callum\Documents\Arduino\libraries\Arduino-Helpers-master\src\AH\STL\Fallback\new.cpp:8:12: warning: deleting 'void*' is undefined [-Wdelete-incomplete]
delete ptr;
^~~
c:\Users\Callum\Documents\Arduino\libraries\Arduino-Helpers-master\src\AH\STL\Fallback\new.cpp: In function 'void operator delete [](void*, std::size_t)':
c:\Users\Callum\Documents\Arduino\libraries\Arduino-Helpers-master\src\AH\STL\Fallback\new.cpp:12:14: warning: deleting 'void*' is undefined [-Wdelete-incomplete]
delete[] ptr;
^~~
C:\Users\Callum\AppData\Local\Temp\arduino-sketch-DA3C5485B27CC3B30E7C8BC7E32EBC3A/..\arduino-core-cache\core_bddc5e1f0b1025e3c6ea3ff691043cd7.a(new.cpp.o): In function operator delete(void*)': C:\Users\Callum\AppData\Local\Arduino15\packages\MegaCore\hardware\avr\2.2.0\cores\MCUdude_corefiles/new.cpp:30: multiple definition of operator delete(void*, unsigned int)'
C:\Users\Callum\AppData\Local\Temp\arduino-sketch-DA3C5485B27CC3B30E7C8BC7E32EBC3A\libraries\Arduino-Helpers-master\AH\STL\Fallback\new.cpp.o:c:\Users\Callum\Documents\Arduino\libraries\Arduino-Helpers-master\src\AH\STL\Fallback/new.cpp:8: first defined here
C:\Users\Callum\AppData\Local\Temp\arduino-sketch-DA3C5485B27CC3B30E7C8BC7E32EBC3A/..\arduino-core-cache\core_bddc5e1f0b1025e3c6ea3ff691043cd7.a(new.cpp.o): In function operator new(unsigned int)': C:\Users\Callum\AppData\Local\Arduino15\packages\MegaCore\hardware\avr\2.2.0\cores\MCUdude_corefiles/new.cpp:22: multiple definition of operator delete[](void*, unsigned int)'
C:\Users\Callum\AppData\Local\Temp\arduino-sketch-DA3C5485B27CC3B30E7C8BC7E32EBC3A\libraries\Arduino-Helpers-master\AH\STL\Fallback\new.cpp.o:c:\Users\Callum\Documents\Arduino\libraries\Arduino-Helpers-master\src\AH\STL\Fallback/new.cpp:8: first defined here
collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

Any help or suggestions would be greatly appreciated