[SOLVED] Error while trying to compile the D3232 RTC library

Hi Everyone,

I am using the Freetronics RTC (DS3232N) module and trying to compile the D3232 RTC lib (GitHub - Tecsmith/DS3232RTC: Arduino library for DS3232 RTC) on DUE with no success. I have tested including the library in a blank sketch with the same results. Everything else compiles OK.

#include <Wire.h>  
#include <Time.h>  
#include <avr/pgmspace.h>
#include <string.h>
#include <DS3232RTC.h>

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

When I try to compile the sketch with the D3232 library included I receive an error.
Everything else compiles OK.

Error Message:

In file included from Testing.ino:7:
C:\Program Files\Arduino\libraries\DS3232RTC/DS3232RTC.h:116: error: expected ')' before '*' token
C:\Program Files\Arduino\libraries\DS3232RTC/DS3232RTC.h:116: error: expected ')' before '*' token

It appears to be around the “extern” function but I suspect it is something else but I just cannot see what it is. I have previous experiences with C/C++ compiler error messages but am a little rusty.

I have uploaded the library for reference.

Any suggestions or hints would be kindly welcomed.

Dougal.
(Arduino Newbie but enjoying the challenge)

DS3232RTC.h (4.96 KB)

DS3232RTC.cpp (17 KB)

That library was written by a third party before the Due. Just use normal I2C commands, there's a guide on how to do it:
RTC Real Time Clock Module Quickstart Guide | Freetronics and scroll down to
Controlling The RTC Module Via Direct I2C Commands

Thanks for that. I didn't read done far enough. :blush:
All is working just fine now.

Regards,
Dougal.