Go Down

Topic: DS1337 Library, converting to V1.01 (Read 463 times) previous topic - next topic

tanky321

Hi,

I recently tried using the DS1337 library by DRMN4EA, and ran into the V1.0 issues. I replaced WProgram.h with Arduino.h, but I'm still getting some error messages.

Any ideas?

Code: [Select]

In file included from C:\Users\HC\Documents\arduino-1.0.1-windows\arduino-1.0.1\hardware\arduino\cores\arduino/Print.h:26,
                 from C:\Users\HC\Documents\arduino-1.0.1-windows\arduino-1.0.1\hardware\arduino\cores\arduino/Stream.h:26,
                 from C:\Users\HC\Documents\arduino-1.0.1-windows\arduino-1.0.1\libraries\Wire/Wire.h:26,
                 from C:\Users\HC\Documents\arduino-1.0.1-windows\arduino-1.0.1\libraries\DS1337\DS1337.cpp:7:
C:\Users\HC\Documents\arduino-1.0.1-windows\arduino-1.0.1\hardware\arduino\cores\arduino/WString.h:116: error: declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, const char*)' conflicts with
C:\Users\HC\Documents\arduino-1.0.1-windows\arduino-1.0.1\hardware\arduino\cores\arduino/WString.h:115: error: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, const String&)' here
C:\Users\HC\Documents\arduino-1.0.1-windows\arduino-1.0.1\hardware\arduino\cores\arduino/WString.h:117: error: declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, char)' conflicts with
C:\Users\HC\Documents\arduino-1.0.1-windows\arduino-1.0.1\hardware\arduino\cores\arduino/WString.h:116: error: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, const char*)' here
C:\Users\HC\Documents\arduino-1.0.1-windows\arduino-1.0.1\hardware\arduino\cores\arduino/WString.h:118: error: declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, unsigned char)' conflicts with
C:\Users\HC\Documents\arduino-1.0.1-windows\arduino-1.0.1\hardware\arduino\cores\arduino/WString.h:117: error: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, char)' here
C:\Users\HC\Documents\arduino-1.0.1-windows\arduino-1.0.1\hardware\arduino\cores\arduino/WString.h:119: error: declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, int)' conflicts with
C:\Users\HC\Documents\arduino-1.0.1-windows\arduino-1.0.1\hardware\arduino\cores\arduino/WString.h:118: error: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, unsigned char)' here
C:\Users\HC\Documents\arduino-1.0.1-windows\arduino-1.0.1\hardware\arduino\cores\arduino/WString.h:120: error: declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, unsigned int)' conflicts with
C:\Users\HC\Documents\arduino-1.0.1-windows\arduino-1.0.1\hardware\arduino\cores\arduino/WString.h:119: error: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, int)' here
C:\Users\HC\Documents\arduino-1.0.1-windows\arduino-1.0.1\hardware\arduino\cores\arduino/WString.h:121: error: declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, long int)' conflicts with
C:\Users\HC\Documents\arduino-1.0.1-windows\arduino-1.0.1\hardware\arduino\cores\arduino/WString.h:120: error: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, unsigned int)' here
C:\Users\HC\Documents\arduino-1.0.1-windows\arduino-1.0.1\hardware\arduino\cores\arduino/WString.h:122: error: declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, long unsigned int)' conflicts with
C:\Users\HC\Documents\arduino-1.0.1-windows\arduino-1.0.1\hardware\arduino\cores\arduino/WString.h:121: error: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, long int)' here

robtillaart

Quote
Any ideas?

1) try to solve them by reading the release notes of 1.0 - 1.0.2 There is more to adapt
2) use another lib (e.g. one without strings helpers)
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Go Up