Using Dawn2Dusk with samd - error compiling

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?

The 'static' designations should not be in the .cpp file.
Try updating to the latest version of the library. They're not present in that one.

Well that was an easy fix.

Oddly enough, I installed through the Arduino IDE and it showed "1.0.1". However, downloading the zip file (which also showed 1.0.1) was different.
Thanks

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.