cyborg5 / IRLib2

Library for receiving, decoding, and sending infrared signals using Arduino
GNU General Public License v3.0
384 stars 138 forks source link

I cant run the simplest code #68

Open 915479996 opened 5 years ago

915479996 commented 5 years ago

include "IRLibAll.h"

IRrecv myReceiver(11); //create receiver and pass pin number IRdecode myDecoder; //create decoder

void setup() { Serial.begin(9600); delay(2000); myReceiver.enableIRIn(); // Start the receiver }

void loop() { //Continue looping until you get a complete signal received if (myReceiver.getResults()) { myDecoder.decode(); //Decode it myDecoder.dumpResults(false); //the results of a Now print results. myReceiver.enableIRIn(); //Restart receiver }

My Arduino board is UNO. When I try to compile these code, the error shows up:

lto1.exe: internal compiler error: in lto_output_varpool_node, at to-cgraph.c:624 Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html for instructions. lto-wrapper.exe: fatal error: E:\arduino-nightly\hardware\tools\avr/bin/avr-gcc returned 1 exit status compilation terminated. e:/arduino-nightly/hardware/tools/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/bin/ld.exe: error: to-wrapper failed collect2.exe: error: ld returned 1 exit status exit status 1

Please tell me what is the problem. Thank you.

cyborg5 commented 5 years ago

It's a problem with the Arduino IDE and the latest toolchain. See issue #58