Pages: [1]   Go Down
Author Topic: DS1337 Library, converting to V1.01  (Read 437 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 46
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
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
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 217
Posts: 13707
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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)
Logged

Rob Tillaart

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

Pages: [1]   Go Up
Jump to: