Bonjours j'ai une erreur de compilation sur une carte méga, mon programme se compile pourtant bien sur la uno, j'ai pourtant bien pensé à changer le type de carte mais sa ne marche pas. Il y a à peine une semaine j'arrivais pourtant à le téléverser sur cette même carte.
Voici le message :
Arduino : 1.8.8 (Windows 10), Carte : "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
C:\Users\User\AppData\Local\Temp\ccJ2CcjB.ltrans2.ltrans.o: In function `global constructors keyed to 65535_0_test_lecture1.ino.cpp.o.2196':
:(.text.startup+0xf8): undefined reference to `pinMode'
:(.text.startup+0x102): undefined reference to `pinMode'
:(.text.startup+0x10c): undefined reference to `pinMode'
:(.text.startup+0x116): undefined reference to `pinMode'
:(.text.startup+0x186): undefined reference to `pinMode'
C:\Users\User\AppData\Local\Temp\ccJ2CcjB.ltrans2.ltrans.o::(.text.startup+0x190): more undefined references to `pinMode' follow
C:\Users\User\AppData\Local\Temp\ccJ2CcjB.ltrans2.ltrans.o: In function `global constructors keyed to 65535_0_test_lecture1.ino.cpp.o.2196':
:(.text.startup+0x212): undefined reference to `digitalWrite'
:(.text.startup+0x21a): undefined reference to `pinMode'
:(.text.startup+0x21e): undefined reference to `digital_pin_to_bit_mask_PGM'
:(.text.startup+0x220): undefined reference to `digital_pin_to_bit_mask_PGM'
:(.text.startup+0x228): undefined reference to `digital_pin_to_port_PGM'
:(.text.startup+0x22a): undefined reference to `digital_pin_to_port_PGM'
:(.text.startup+0x234): undefined reference to `port_to_output_PGM'
:(.text.startup+0x236): undefined reference to `port_to_output_PGM'
:(.text.startup+0x248): undefined reference to `pinMode'
:(.text.startup+0x258): undefined reference to `digitalWrite'
:(.text.startup+0x262): undefined reference to `digital_pin_to_bit_mask_PGM'
:(.text.startup+0x264): undefined reference to `digital_pin_to_bit_mask_PGM'
:(.text.startup+0x26c): undefined reference to `digital_pin_to_port_PGM'
:(.text.startup+0x26e): undefined reference to `digital_pin_to_port_PGM'
:(.text.startup+0x278): undefined reference to `port_to_input_PGM'
:(.text.startup+0x27a): undefined reference to `port_to_input_PGM'
C:\Users\User\AppData\Local\Temp\ccJ2CcjB.ltrans0.ltrans.o: In function `main':
:(.text.startup+0x3c4): undefined reference to `pinMode'
:(.text.startup+0x3cc): undefined reference to `pinMode'
:(.text.startup+0x38d2): undefined reference to `digitalRead'
:(.text.startup+0x38e0): undefined reference to `digitalRead'
C:\Users\User\AppData\Local\Temp\ccJ2CcjB.ltrans1.ltrans.o: In function `Stepper::stepMotor(int)':
:(.text+0x3f4): undefined reference to `digitalWrite'
:(.text+0x400): undefined reference to `digitalWrite'
:(.text+0x408): undefined reference to `digitalWrite'
:(.text+0x426): undefined reference to `digitalWrite'
:(.text+0x43e): undefined reference to `digitalWrite'
C:\Users\User\AppData\Local\Temp\ccJ2CcjB.ltrans1.ltrans.o::(.text+0x44a): more undefined references to `digitalWrite' follow
collect2.exe: error: ld returned 1 exit status
exit status 1
Erreur de compilation pour la carte Arduino/Genuino Mega or Mega 2560
Ce rapport pourrait être plus détaillé avec
l'option "Afficher les résultats détaillés de la compilation"
activée dans Fichier -> Préférences.