Skip to content

Arduino 101 EEPROM.h included more than once produces compile errors #422

@drmpf

Description

@drmpf

If you
#include <EEPROM.h>
in more then one file, e.g. in the main sketch and in a library file or another .ino file
Then the compiler exits with errors like

Arduino15\packages\Intel\hardware\arc32\1.0.7\libraries\EEPROM\src/EEPROM.h:38: multiple definition of `CurieClear()'

due to EEPROM.h have method code in the header file.

Moving the methods to a EEPROM.cpp file and declaring them at the top of the EEPROM.h file seems to fix the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions