bonjour à tous le monde,
voici mon problème ou je ne trouve pas la réponse.
IDE arduino je jj'utilise est la version 2:1.0.5
J'ai voulu écrire un sketch pour faire fonctionné un capteur DHT11 avec le moniteur série. j' importe la lib DHT.h dans /usr/share/arduino sur ma machine.
je compile le programme et me retour comme message erreurs sur la console arduino ceci.
```
Erreur de compilation.
/usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -D__PROG_TYPES_COMPAT__ -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/standard -I/usr/share/arduino/libraries/DHT /tmp/build6682091957470726528.tmp/sketch_dec23a.cpp -o /tmp/build6682091957470726528.tmp/sketch_dec23a.cpp.o
Using previously compiled: /tmp/build6682091957470726528.tmp/wiring.c.o
Using previously compiled: /tmp/build6682091957470726528.tmp/wiring_pulse.c.o
Using previously compiled: /tmp/build6682091957470726528.tmp/wiring_digital.c.o
Using previously compiled: /tmp/build6682091957470726528.tmp/malloc.c.o
Using previously compiled: /tmp/build6682091957470726528.tmp/realloc.c.o
Using previously compiled: /tmp/build6682091957470726528.tmp/wiring_shift.c.o
Using previously compiled: /tmp/build6682091957470726528.tmp/wiring_analog.c.o
Using previously compiled: /tmp/build6682091957470726528.tmp/WInterrupts.c.o
Using previously compiled: /tmp/build6682091957470726528.tmp/HID.cpp.o
Using previously compiled: /tmp/build6682091957470726528.tmp/WString.cpp.o
Using previously compiled: /tmp/build6682091957470726528.tmp/Print.cpp.o
Using previously compiled: /tmp/build6682091957470726528.tmp/CDC.cpp.o
Using previously compiled: /tmp/build6682091957470726528.tmp/IPAddress.cpp.o
Using previously compiled: /tmp/build6682091957470726528.tmp/main.cpp.o
Using previously compiled: /tmp/build6682091957470726528.tmp/new.cpp.o
Using previously compiled: /tmp/build6682091957470726528.tmp/WMath.cpp.o
Using previously compiled: /tmp/build6682091957470726528.tmp/Stream.cpp.o
Using previously compiled: /tmp/build6682091957470726528.tmp/USBCore.cpp.o
Using previously compiled: /tmp/build6682091957470726528.tmp/Tone.cpp.o
Using previously compiled: /tmp/build6682091957470726528.tmp/HardwareSerial.cpp.o
/usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build6682091957470726528.tmp/core.a /tmp/build6682091957470726528.tmp/wiring.c.o
/usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build6682091957470726528.tmp/core.a /tmp/build6682091957470726528.tmp/wiring_pulse.c.o
/usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build6682091957470726528.tmp/core.a /tmp/build6682091957470726528.tmp/wiring_digital.c.o
/usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build6682091957470726528.tmp/core.a /tmp/build6682091957470726528.tmp/malloc.c.o
/usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build6682091957470726528.tmp/core.a /tmp/build6682091957470726528.tmp/realloc.c.o
/usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build6682091957470726528.tmp/core.a /tmp/build6682091957470726528.tmp/wiring_shift.c.o
/usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build6682091957470726528.tmp/core.a /tmp/build6682091957470726528.tmp/wiring_analog.c.o
/usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build6682091957470726528.tmp/core.a /tmp/build6682091957470726528.tmp/WInterrupts.c.o
/usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build6682091957470726528.tmp/core.a /tmp/build6682091957470726528.tmp/HID.cpp.o
/usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build6682091957470726528.tmp/core.a /tmp/build6682091957470726528.tmp/WString.cpp.o
/usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build6682091957470726528.tmp/core.a /tmp/build6682091957470726528.tmp/Print.cpp.o
/usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build6682091957470726528.tmp/core.a /tmp/build6682091957470726528.tmp/CDC.cpp.o
/usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build6682091957470726528.tmp/core.a /tmp/build6682091957470726528.tmp/IPAddress.cpp.o
/usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build6682091957470726528.tmp/core.a /tmp/build6682091957470726528.tmp/main.cpp.o
/usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build6682091957470726528.tmp/core.a /tmp/build6682091957470726528.tmp/new.cpp.o
/usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build6682091957470726528.tmp/core.a /tmp/build6682091957470726528.tmp/WMath.cpp.o
/usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build6682091957470726528.tmp/core.a /tmp/build6682091957470726528.tmp/Stream.cpp.o
/usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build6682091957470726528.tmp/core.a /tmp/build6682091957470726528.tmp/USBCore.cpp.o
/usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build6682091957470726528.tmp/core.a /tmp/build6682091957470726528.tmp/Tone.cpp.o
/usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build6682091957470726528.tmp/core.a /tmp/build6682091957470726528.tmp/HardwareSerial.cpp.o
/usr/share/arduino/hardware/tools/avr/bin/avr-gcc -Os -Wl,--gc-sections -mmcu=atmega328p -o /tmp/build6682091957470726528.tmp/sketch_dec23a.cpp.elf /tmp/build6682091957470726528.tmp/sketch_dec23a.cpp.o /tmp/build6682091957470726528.tmp/core.a -L/tmp/build6682091957470726528.tmp -lm
sketch_dec23a.cpp.o: In function `_GLOBAL__sub_I_dht':
/usr/share/arduino/sketch_dec23a.ino:10: undefined reference to `DHT::begin()'
/usr/share/arduino/sketch_dec23a.ino:10: undefined reference to `DHT::readHumidity(bool)'
/usr/share/arduino/sketch_dec23a.ino:10: undefined reference to `DHT::readTemperature(bool, bool)'
/usr/share/arduino/sketch_dec23a.ino:10: undefined reference to `DHT::readTemperature(bool, bool)'
/usr/share/arduino/sketch_dec23a.ino:10: undefined reference to `DHT::computeHeatIndex(float, float, bool)'
/usr/share/arduino/sketch_dec23a.ino:10: undefined reference to `DHT::computeHeatIndex(float, float, bool)'
/usr/share/arduino/sketch_dec23a.ino:10: undefined reference to `DHT::DHT(unsigned char, unsigned char, unsigned char)'
collect2: error: ld returned 1 exit status
```
merci d'avance de vos retour qui j'espere seront éclairé mon problême. joyeux fête a tous.