Go Down

Topic: EEPROMEx example code not compiling (Read 2867 times) previous topic - next topic

williamlynn

Downloaded EEPROMex library from GiTHub and the examples will not compile

Example EEPROMEx runs fine

Example EEPROMBackup gives compile errors
"
EEPROMBackup:23: error: 'EEPROMSizeUno' was not declared in this scope
EEPROMBackup:53: error: expected constructor, destructor, or type conversion before '<' token
EEPROMBackup.pde: In function 'void setup()':
EEPROMBackup:61: error: 'EEPROM' was not declared in this scope
EEPROMBackup:61: error: 'EEPROMSizeUno' was not declared in this scope
EEPROMBackup:70: error: 'timeBackup' was not declared in this scope
EEPROMBackup.pde: In function 'void loop()':
EEPROMBackup:77: error: 'timeBackup' was not declared in this scope
"

Example EEPROMVar give the following compile errors
"
EEPROMVar:17: error: variable or field 'readAndWriteVar' declared void
EEPROMVar:17: error: 'EEPROMVar' was not declared in this scope
EEPROMVar:17: error: expected primary-expression before 'float'
EEPROMVar.pde: In function 'void setup()':
EEPROMVar:50: error: 'EEPROM' was not declared in this scope
EEPROMVar:50: error: 'EEPROMSizeUno' was not declared in this scope
EEPROMVar:57: error: 'EEPROMVar' was not declared in this scope
EEPROMVar:57: error: expected primary-expression before 'float'
EEPROMVar:57: error: expected `;' before 'float'
EEPROMVar:59: error: 'eepromFloat' was not declared in this scope
EEPROMVar:59: error: 'readAndWriteVar' was not declared in this scope
"

Can anyone tell me what to change to get the examples to work???

Bill

Grumpy_Mike

Please link the code you are trying to compile and say what version of the IDE you are trying to compile it on.

williamlynn

Thanks for reply;

Attached are the two example files(no modifications from downloaded files) that will not compile.

I am using 1.5.4.r2

Bill

Grumpy_Mike

And a link to the two libraries?
#include <EEPROMex.h>
#include <EEPROMBackupVar.h>

Given that the extension of the files you posted is .pde it suggests it is a very old file and not compatible with 1.x versions of the arduino IDE.

williamlynn

Attached are the files.

The file dates shown in the download show July 12, 2012 for the backup and var files; Jan 20,2013 for the Ex file.

This is the download link. https://github.com/thijse/Arduino-Libraries

Bill

PaulS

The EEPROMBackupVar.h file is trying to use the getAdress() method, which doesn't exist. Change getAdress() to getAddress() in two places, and the code compiles.
The art of getting good answers lies in asking good questions.

williamlynn

Paul:

Thank you.  EEPROMVar and EEPROMBackup examples now work; I also had to change getAdress to getAddress in EEPROMVar.pde

Thanks again; how do we get the creator to update the download??

Bill Lynn

PaulS

Quote
how do we get the creator to update the download??

It's posted on github. Anyone can check the files out, fix them, and check them back in. Anyone with a github account, anyway.

Personally, I won't get one because I hate the piss-poor layout that the site uses. Making people hunt all over the place for the download button is asinine.
The art of getting good answers lies in asking good questions.

williamlynn

IO HAVE A github ACCOUNT BUT AM NOT ADEPT AT USING IT SO I FOUND THE CREATORS WEBSITE AND SENT HIM A MESSAGE.
THANKS AGAIN FOR YOUR HELP

bILL

mrTee

Hi William,

Thanks for your bug reports. I packaged a version that includes a lot of bugfixes. It will fix the issues you describe, as well as included Teensy support. Special thanks to the people who have submitted fixes:

You can download the updated library at the same place as the previous: 
  http://thijs.elenbaas.net/downloads/?did=3

Cheers,
Thijs

Go Up