erreur compilation arduino uno

a marqué ce sujet comme résolu.

Bonjour j’ai chargé la dernière version arduino 1.8 sous windows 10 et re re chargé fais des essais avec ou sans la carte branchée vérifier le port, le type de carte dans outils , les préférences et j’ai toujours l’erreur: "C:\Users\foire2\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2/bin/avr-g++": file does not exist Erreur de compilation pour la carte Arduino/Genuino Uno help !!!!!

Bonjour !!! j’ai programmé quelque chose pour mon etude et ça affiche une erreur de compilation:

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\Max\Documents\Arduino\libraries" -fqbn=arduino:avr:uno -ide-version=10609 -build-path "C:\Users\Max\AppData\Local\Temp\buildb25bcab00fe53398de25f54756bcaedf.tmp" -warnings=all -prefs=build.warn_data_percentage=75 -verbose "D:\Programmation Arduino\programmation_memoire\programmation_memoire.ino" C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\Max\Documents\Arduino\libraries" -fqbn=arduino:avr:uno -ide-version=10609 -build-path "C:\Users\Max\AppData\Local\Temp\buildb25bcab00fe53398de25f54756bcaedf.tmp" -warnings=all -prefs=build.warn_data_percentage=75 -verbose "D:\Programmation Arduino\programmation_memoire\programmation_memoire.ino" "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\Max\AppData\Local\Temp\buildb25bcab00fe53398de25f54756bcaedf.tmp\sketch\programmation_memoire.ino.cpp" -o "nul" "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\Max\Documents\Arduino\libraries\LiquidCrystal" "C:\Users\Max\AppData\Local\Temp\buildb25bcab00fe53398de25f54756bcaedf.tmp\sketch\programmation_memoire.ino.cpp" -o "nul" "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\Max\Documents\Arduino\libraries\LiquidCrystal" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "C:\Users\Max\AppData\Local\Temp\buildb25bcab00fe53398de25f54756bcaedf.tmp\sketch\programmation_memoire.ino.cpp" -o "nul" "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Users\Max\Documents\Arduino\libraries\Keypad" "-IC:\Users\Max\Documents\Arduino\libraries\LiquidCrystal" "C:\Users\Max\AppData\Local\Temp\buildb25bcab00fe53398de25f54756bcaedf.tmp\sketch\programmation_memoire.ino.cpp" -o "nul" "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\Max\Documents\Arduino\libraries\Keypad" "-IC:\Users\Max\Documents\Arduino\libraries\LiquidCrystal" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "C:\Users\Max\Documents\Arduino\libraries\LiquidCrystal\LiquidCrystal.cpp" -o "nul" "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\Max\Documents\Arduino\libraries\LiquidCrystal" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Users\Max\Documents\Arduino\libraries\Keypad" "C:\Users\Max\AppData\Local\Temp\buildb25bcab00fe53398de25f54756bcaedf.tmp\sketch\programmation_memoire.ino.cpp" -o "C:\Users\Max\AppData\Local\Temp\buildb25bcab00fe53398de25f54756bcaedf.tmp\preproc\ctags_target_for_gcc_minus_e.cpp" "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\Max\Documents\Arduino\libraries\LiquidCrystal" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Users\Max\Documents\Arduino\libraries\Keypad" "C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src\SPI.cpp" -o "nul" "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Users\Max\Documents\Arduino\libraries\Keypad" "-IC:\Users\Max\Documents\Arduino\libraries\LiquidCrystal" "C:\Users\Max\Documents\Arduino\libraries\Keypad\Keypad.cpp" -o "nul" "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Users\Max\Documents\Arduino\libraries\Keypad" "-IC:\Users\Max\Documents\Arduino\libraries\LiquidCrystal" "C:\Users\Max\Documents\Arduino\libraries\Keypad\utility\Key.cpp" -o "nul" "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\Max\Documents\Arduino\libraries\LiquidCrystal" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Users\Max\Documents\Arduino\libraries\Keypad" "C:\Users\Max\AppData\Local\Temp\buildb25bcab00fe53398de25f54756bcaedf.tmp\sketch\programmation_memoire.ino.cpp" -o "C:\Users\Max\AppData\Local\Temp\buildb25bcab00fe53398de25f54756bcaedf.tmp\preproc\ctags_target_for_gcc_minus_e.cpp" "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\Max\Documents\Arduino\libraries\LiquidCrystal" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Users\Max\Documents\Arduino\libraries\Keypad" "C:\Users\Max\AppData\Local\Temp\buildb25bcab00fe53398de25f54756bcaedf.tmp\sketch\programmation_memoire.ino.cpp" -o "nul" "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\Max\Documents\Arduino\libraries\LiquidCrystal" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Users\Max\Documents\Arduino\libraries\Keypad" "C:\Users\Max\AppData\Local\Temp\buildb25bcab00fe53398de25f54756bcaedf.tmp\sketch\programmation_memoire.ino.cpp" -o "C:\Users\Max\AppData\Local\Temp\buildb25bcab00fe53398de25f54756bcaedf.tmp\preproc\ctags_target_for_gcc_minus_e.cpp" "C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino10/ctags" -u –language-force=c++ -f - –c++-kinds=svpf –fields=KSTtzns –line-directives "C:\Users\Max\AppData\Local\Temp\buildb25bcab00fe53398de25f54756bcaedf.tmp\preproc\ctags_target_for_gcc_minus_e.cpp" "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\Max\Documents\Arduino\libraries\LiquidCrystal" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Users\Max\Documents\Arduino\libraries\Keypad" "C:\Users\Max\AppData\Local\Temp\buildb25bcab00fe53398de25f54756bcaedf.tmp\sketch\programmation_memoire.ino.cpp" -o "C:\Users\Max\AppData\Local\Temp\buildb25bcab00fe53398de25f54756bcaedf.tmp\sketch\programmation_memoire.ino.cpp.o" In file included from D:\Programmation Arduino\programmation_memoire\programmation_memoire.ino:1:0:

C:\Users\Max\Documents\Arduino\libraries\LiquidCrystal/LiquidCrystal.h:86:16: error: conflicting return type specified for ’virtual void LiquidCrystal::write(uint8_t)’

virtual void write(uint8_t);

1
            ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Stream.h:26:0,

1
2
3
4
5
             from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/HardwareSerial.h:29,

             from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:224,

             from C:\Users\Max\AppData\Local\Temp\buildb25bcab00fe53398de25f54756bcaedf.tmp\sketch\programmation_memoire.ino.cpp:1:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Print.h:48:20: error: overriding ’virtual size_t Print::write(uint8_t)’

1
2
3
 virtual size_t write(uint8_t) = 0;

                ^

D:\Programmation Arduino\programmation_memoire\programmation_memoire.ino: In function ’void affichage()’:

D:\Programmation Arduino\programmation_memoire\programmation_memoire.ino:113:19: warning: suggest parentheses around assignment used as truth value [-Wparentheses]

1
2
3
     if (etat=1)

               ^

D:\Programmation Arduino\programmation_memoire\programmation_memoire.ino:120:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses]

1
2
3
 else if (puissance=i)

                     ^

Plusieurs bibliothèque trouvées pour "LiquidCrystal.h" Utilisé : C:\Users\Max\Documents\Arduino\libraries\LiquidCrystal Non utilisé : C:\Program Files (x86)\Arduino\libraries\LiquidCrystal Utilisation de la bibliothèque LiquidCrystal prise dans le dossier : C:\Users\Max\Documents\Arduino\libraries\LiquidCrystal (legacy) Utilisation de la bibliothèque SPI version 1.0 dans le dossier: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI Utilisation de la bibliothèque Keypad prise dans le dossier : C:\Users\Max\Documents\Arduino\libraries\Keypad (legacy) exit status 1 Error compiling for board Arduino/Genuino Uno.

+0 -1

Cela dépend de ce que tu entends par "la".

Vu que le sujet est dédié à un autre problème, je te conseille d’ouvrir un sujet plus approprié.

Ensuite, s’il s’agit de ton code, pense à utiliser les balises pour le code arduino, histoire que cela soit lisible. (L’image avec les chevrons <> dans la toolbar).

C’est tout simplement imbitable, tu n’as pas lu/suivi ce que j’ai écrit, aussi bien pour le nouveau sujet que pour rendre ton code lisible.

Je suis fainéant, tu n’as pas fait d’effort pour le lecteur, je ne compte pas en faire plus de mon côté.

Connectez-vous pour pouvoir poster un message.
Connexion

Pas encore membre ?

Créez un compte en une minute pour profiter pleinement de toutes les fonctionnalités de Zeste de Savoir. Ici, tout est gratuit et sans publicité.
Créer un compte