I am trying to use the library Dusk2Dawn to calculate a sunset time based on a position. According to the documentation, it should work fine with my Nano 33 iot (samd).
However, when compiling, I get two errors:
C:\Users\xxx\Documents\Arduino\libraries\Dusk2Dawn\Dusk2Dawn.cpp:52:54: error: cannot declare member function 'static bool Dusk2Dawn::min2str(char*, int)' to have static linkage [-fpermissive]
static bool Dusk2Dawn::min2str(char *str, int minutes) {
^
C:\Users\xxx\Documents\Arduino\libraries\Dusk2Dawn\Dusk2Dawn.cpp:293:65: error: cannot declare member function 'static bool Dusk2Dawn::zeroPadTime(char*, byte)' to have static linkage [-fpermissive]
static bool Dusk2Dawn::zeroPadTime(char *str, byte timeComponent)
Any ideas?