WorldFamousElectronics / PulseSensorPlayground

A PulseSensor library (for Arduino) that collects our most popular projects in one place.
https://PulseSensor.com
MIT License
200 stars 97 forks source link

compilation error for digispark Attiny85 #114

Closed SaimShuja closed 4 years ago

SaimShuja commented 4 years ago

there is something wrong with the library. compilation log below for reference

libraries\PulseSensor_Playground\PulseSensorPlayground.cpp.o: In function `PulseSensorPlayground::PulseSensorPlayground(int)':

C:\Users\sohai\Documents\Arduino\libraries\PulseSensor_Playground\src/PulseSensorPlayground.cpp:28: undefined reference to `operator new[](unsigned int)'

collect2.exe: error: ld returned 1 exit status

Multiple libraries were found for "PulseSensorPlayground.h" Used: C:\Users\sohai\Documents\Arduino\libraries\PulseSensor_Playground exit status 1 Error compiling for board Digispark (Default - 16.5mhz).

biomurph commented 4 years ago

Try uninstalling the PulseSensor Playground library, or going to your Documents/Arduino/libraries folder and manually deleting it and then re installing with the Arduino Library manager.

SaimShuja commented 4 years ago

after deleting the folder from "libraries" i tried reinstalling from library manager and also tried by pasting doenloaded folder from git, same issue

biomurph commented 4 years ago

I know that the playground works for Attiny85. Perhaps try to select a different board version that uses the ATtiny85.