hi i have a librarie form SHT sensirion but it was for 2010 and when i try to compile somethig with that jumps a error tha says tha Wconstants.h was not able to find....
anyone knows about this
hi i have a librarie form SHT sensirion but it was for 2010 and when i try to compile somethig with that jumps a error tha says tha Wconstants.h was not able to find....
anyone knows about this
A number of header files from 0023 and earlier were combined into one header file for 1.0. Try changing WConstants.h to Arduino.h.
thanks i will try now
EDIT: it halp the Wcontants.h error but it makes jumps many error more
this is the sensirion lib i am talking about
http://arduino.cc/playground/Code/Sensirion#LibrariesEtc
EDIT: it halp the Wcontants.h error but it makes jumps many error more
So, post them.
I dont know how to copy them but resumes that there its a conflict with the declaration of variables with Wstring.h
Try removing all of the include files that come with arduino (essentially the W__ ones) and just having it include Arduino.h
You can (and should) copy the errors by selecting them and pressing ctrl-C
this is the log of errors
In file included from D:\Nueva carpeta\memoria\arduino-1.0\hardware\arduino\cores\arduino/Arduino.h:191,
from D:\Nueva carpeta\memoria\arduino-1.0\libraries\Sensirion\Sensirion.cpp:23:
D:\Nueva carpeta\memoria\arduino-1.0\hardware\arduino\cores\arduino/WString.h:116: error: declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, const char*)' conflicts with
D:\Nueva carpeta\memoria\arduino-1.0\hardware\arduino\cores\arduino/WString.h:115: error: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, const String&)' here
D:\Nueva carpeta\memoria\arduino-1.0\hardware\arduino\cores\arduino/WString.h:117: error: declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, char)' conflicts with
D:\Nueva carpeta\memoria\arduino-1.0\hardware\arduino\cores\arduino/WString.h:116: error: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, const char*)' here
D:\Nueva carpeta\memoria\arduino-1.0\hardware\arduino\cores\arduino/WString.h:118: error: declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, unsigned char)' conflicts with
D:\Nueva carpeta\memoria\arduino-1.0\hardware\arduino\cores\arduino/WString.h:117: error: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, char)' here
D:\Nueva carpeta\memoria\arduino-1.0\hardware\arduino\cores\arduino/WString.h:119: error: declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, int)' conflicts with
D:\Nueva carpeta\memoria\arduino-1.0\hardware\arduino\cores\arduino/WString.h:118: error: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, unsigned char)' here
D:\Nueva carpeta\memoria\arduino-1.0\hardware\arduino\cores\arduino/WString.h:120: error: declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, unsigned int)' conflicts with
D:\Nueva carpeta\memoria\arduino-1.0\hardware\arduino\cores\arduino/WString.h:119: error: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, int)' here
D:\Nueva carpeta\memoria\arduino-1.0\hardware\arduino\cores\arduino/WString.h:121: error: declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, long int)' conflicts with
D:\Nueva carpeta\memoria\arduino-1.0\hardware\arduino\cores\arduino/WString.h:120: error: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, unsigned int)' here
D:\Nueva carpeta\memoria\arduino-1.0\hardware\arduino\cores\arduino/WString.h:122: error: declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, long unsigned int)' conflicts with
D:\Nueva carpeta\memoria\arduino-1.0\hardware\arduino\cores\arduino/WString.h:121: error: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, long int)' here
In file included from D:\Nueva carpeta\memoria\arduino-1.0\libraries\Sensirion\Sensirion.cpp:23:
D:\Nueva carpeta\memoria\arduino-1.0\hardware\arduino\cores\arduino/Arduino.h:195: error: declaration of C function 'uint16_t makeWord(byte, byte)' conflicts with
D:\Nueva carpeta\memoria\arduino-1.0\hardware\arduino\cores\arduino/Arduino.h:194: error: previous declaration 'uint16_t makeWord(uint16_t)' here
D:\Nueva carpeta\memoria\arduino-1.0\hardware\arduino\cores\arduino/Arduino.h:205: error: declaration of C function 'long int random(long int)' conflicts with
d:/nueva carpeta/memoria/arduino-1.0/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:504: error: previous declaration 'long int random()' here
D:\Nueva carpeta\memoria\arduino-1.0\hardware\arduino\cores\arduino/Arduino.h:206: error: declaration of C function 'long int random(long int, long int)' conflicts with
D:\Nueva carpeta\memoria\arduino-1.0\hardware\arduino\cores\arduino/Arduino.h:205: error: previous declaration 'long int random(long int)' here
this is the log of errors
See that search field on the right up there? At the very top. It's time for you to avail yourself of its capabilities.
Hi,
I had the same problems using the so far latest version of the Sensirion library (Version 2.0 - 10Dec2010, Arduino Playground - Sensirion) together with Arduino 1.0 (on Windows 7, 32 bit). I could find the file WConstants.h, which includes further header files, here: Initial page - Development Libelium
I put the files WConstants.h, wiring.h and binary.h in the Sensirion library folder and it worked fine.
These three files are attached.
Have fun!
wolf7
WConstants.h (932 Bytes)
wiring.h (3.54 KB)
binary.h (11.3 KB)
wolf7:
Hi,I had the same problems using the so far latest version of the Sensirion library (Version 2.0 - 10Dec2010, Arduino Playground - HomePage) together with Arduino 1.0 (on Windows 7, 32 bit). I could find the file WConstants.h, which includes further header files, here: http://www.libelium.com/api/waspmote/WConstants_8h-source.html
I put the files WConstants.h, wiring.h and binary.h in the Sensirion library folder and it worked fine.
These three files are attached.
Have fun!
wolf7
work with this solution! thank you