Skip to content

Arduinodroid compilation error #14

Description

@Akokali

#include <I2C_RTC.h>
static DS3231 rtc;

/sdk/hardware/tools/avr/bin/avr-g++ -no-canonical-prefixes -std=gnu++11 -c -g -Os -w -mmcu=atmega328p -DF_CPU=16000000L -DUSB_VID=null -DUSB_PID=null -DARDUINO=10812 -DIDE="ArduinoDroid" -DARDUINO_ARCH_AVR -DARDUINO_AVR_NANO /RTC/src/PCF8523.cpp -o /librariesBuild/RTC/PCF8523.cpp.o /RTC/src/PCF8523.cpp: In member function 'void PCF8523::setEpoch(time_t)':
/RTC/src/PCF8523.cpp:510:12: error: aggregate 'PCF8523::setEpoch(time_t)::tm epoch_tm' has incomplete type and cannot be defined
struct tm epoch_tm, *ptr_epoch_tm;
^
/RTC/src/PCF8523.cpp:512:30: error: 'gmtime' was not declared in this scope
ptr_epoch_tm = gmtime(&epoch);
^
/RTC/src/PCF8523.cpp: In member function 'time_t PCF8523::getEpoch()':
/RTC/src/PCF8523.cpp:558:12: error: aggregate 'PCF8523::getEpoch()::tm epoch_tm' has incomplete type and cannot be defined
struct tm epoch_tm;
^
/RTC/src/PCF8523.cpp:585:29: error: 'mktime' was not declared in this scope
epoch = mktime(&epoch_tm);
^
Return code is not 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions