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
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.