Abdellazizhammami / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

onewire library broken #704

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Sketched (mine or demo ones) using OneWire library fails to compile under new 
1.0 beta, even after changing references of #include "WConstants.h" to #include 
"Arduino.h" in OneWire.cpp.

What is the expected output? What do you see instead?

In file included from 
C:\arduino-1.0-beta1\hardware\arduino\cores\arduino/Arduino.h:182,
                 from C:\arduino-1.0-beta1\libraries\OneWire\OneWire.cpp:85:
C:\arduino-1.0-beta1\hardware\arduino\cores\arduino/WString.h:116: error: 
declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, 
const char*)' conflicts with
C:\arduino-1.0-beta1\hardware\arduino\cores\arduino/WString.h:115: error: 
previous declaration 'StringSumHelper& operator+(const StringSumHelper&, const 
String&)' here
C:\arduino-1.0-beta1\hardware\arduino\cores\arduino/WString.h:117: error: 
declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, 
char)' conflicts with
C:\arduino-1.0-beta1\hardware\arduino\cores\arduino/WString.h:116: error: 
previous declaration 'StringSumHelper& operator+(const StringSumHelper&, const 
char*)' here
C:\arduino-1.0-beta1\hardware\arduino\cores\arduino/WString.h:118: error: 
declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, 
unsigned char)' conflicts with
C:\arduino-1.0-beta1\hardware\arduino\cores\arduino/WString.h:117: error: 
previous declaration 'StringSumHelper& operator+(const StringSumHelper&, char)' 
here
C:\arduino-1.0-beta1\hardware\arduino\cores\arduino/WString.h:119: 
error:.............

What version of the Arduino software are you using? On what operating
system?  Which Arduino board are you using?

1.0 beta current download, Windows, any board.

Please provide any additional information below.

Cleanly installed environment (ie not an upgrade) shows exactly the sane 
symptoms.

Original issue reported on code.google.com by stevehow...@gmail.com on 3 Nov 2011 at 9:51

GoogleCodeExporter commented 8 years ago
Sounds like you're using OneWire version 2.0 (or earlier?)

Version 2.1 was recently released, with compatibility for Arduino 1.0.

http://www.pjrc.com/teensy/td_libs_OneWire.html

Original comment by paul.sto...@gmail.com on 4 Nov 2011 at 9:41

GoogleCodeExporter commented 8 years ago
Could you please report your results using version 2.1?

This issue should be closed, unless a problem is confirmed with the latest 
version.

Original comment by paul.sto...@gmail.com on 9 Nov 2011 at 4:45

GoogleCodeExporter commented 8 years ago
I'm marking this as invalid in any case, since the OneWire library isn't part 
of the Arduino software.  

Original comment by dmel...@gmail.com on 9 Nov 2011 at 7:02