Arduino IDE Examples - errors

I am trying out some IR code examples in the IDE.
I am running into errors compiling the unchanged code. Recently I have updated libraries, and I assume that the examples are also updated when the library changes. Perhaps not.
The two libraries I am receiving errors are

  1. "IRLib2" file RawSend.

I am receiving an error on line "mySender.send(RawData,RAW_DATA_LEN, 36;
Error is "RawData not declared in this scope"
2)
Also in IRremote library, Error on line - IRSender.sendNEC(.........
Error is IRSender not declared in this scope

Arduino: 1.8.13 (Windows 7), Board: "Arduino Uno"

rawSend example in Arduino IDE Error file





C:\Users\POP\Desktop\Arduino\arduino-1.8.13\arduino-builder -dump-prefs -logger=machine -hardware C:\Users\POP\Desktop\Arduino\arduino-1.8.13\hardware -hardware C:\Users\POP\AppData\Local\Arduino15\packages -tools C:\Users\POP\Desktop\Arduino\arduino-1.8.13\tools-builder -tools C:\Users\POP\Desktop\Arduino\arduino-1.8.13\hardware\tools\avr -tools C:\Users\POP\AppData\Local\Arduino15\packages -built-in-libraries C:\Users\POP\Desktop\Arduino\arduino-1.8.13\libraries -libraries C:\Users\POP\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=2341_0043 -ide-version=10813 -build-path C:\Users\POP\AppData\Local\Temp\arduino_build_164231 -warnings=none -build-cache C:\Users\POP\AppData\Local\Temp\arduino_cache_696953 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\POP\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=C:\Users\POP\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avrdude.path=C:\Users\POP\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\POP\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=C:\Users\POP\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\POP\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -verbose C:\Users\POP\Documents\Arduino\libraries\IRLib2\examples\rawSend\rawSend.ino

C:\Users\POP\Desktop\Arduino\arduino-1.8.13\arduino-builder -compile -logger=machine -hardware C:\Users\POP\Desktop\Arduino\arduino-1.8.13\hardware -hardware C:\Users\POP\AppData\Local\Arduino15\packages -tools C:\Users\POP\Desktop\Arduino\arduino-1.8.13\tools-builder -tools C:\Users\POP\Desktop\Arduino\arduino-1.8.13\hardware\tools\avr -tools C:\Users\POP\AppData\Local\Arduino15\packages -built-in-libraries C:\Users\POP\Desktop\Arduino\arduino-1.8.13\libraries -libraries C:\Users\POP\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=2341_0043 -ide-version=10813 -build-path C:\Users\POP\AppData\Local\Temp\arduino_build_164231 -warnings=none -build-cache C:\Users\POP\AppData\Local\Temp\arduino_cache_696953 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\POP\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=C:\Users\POP\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avrdude.path=C:\Users\POP\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\POP\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=C:\Users\POP\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\POP\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -verbose C:\Users\POP\Documents\Arduino\libraries\IRLib2\examples\rawSend\rawSend.ino

Using board 'uno' from platform in folder: C:\Users\POP\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.2

Using core 'arduino' from platform in folder: C:\Users\POP\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.2

Detecting libraries used...

"C:\\Users\\POP\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\POP\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\POP\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\standard" "C:\\Users\\POP\\AppData\\Local\\Temp\\arduino_build_164231\\sketch\\rawSend.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

Alternatives for IRLibSendBase.h: [IRLibProtocols@2.0.19]

ResolveLibrary(IRLibSendBase.h)

  -> candidates: [IRLibProtocols@2.0.19]

"C:\\Users\\POP\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\POP\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\POP\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\standard" "-IC:\\Users\\POP\\Documents\\Arduino\\libraries\\IRLibProtocols" "C:\\Users\\POP\\AppData\\Local\\Temp\\arduino_build_164231\\sketch\\rawSend.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

"C:\\Users\\POP\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\POP\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\POP\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\standard" "-IC:\\Users\\POP\\Documents\\Arduino\\libraries\\IRLibProtocols" "C:\\Users\\POP\\Documents\\Arduino\\libraries\\IRLibProtocols\\IRLibHardware.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

"C:\\Users\\POP\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\POP\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\POP\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\standard" "-IC:\\Users\\POP\\Documents\\Arduino\\libraries\\IRLibProtocols" "C:\\Users\\POP\\Documents\\Arduino\\libraries\\IRLibProtocols\\IRLibProtocols.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

"C:\\Users\\POP\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\POP\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\POP\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\standard" "-IC:\\Users\\POP\\Documents\\Arduino\\libraries\\IRLibProtocols" "C:\\Users\\POP\\Documents\\Arduino\\libraries\\IRLibProtocols\\IRLibSAMD21.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

"C:\\Users\\POP\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\POP\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\POP\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\standard" "-IC:\\Users\\POP\\Documents\\Arduino\\libraries\\IRLibProtocols" "C:\\Users\\POP\\Documents\\Arduino\\libraries\\IRLibProtocols\\IRLibSAMD51.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

"C:\\Users\\POP\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\POP\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\POP\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\standard" "-IC:\\Users\\POP\\Documents\\Arduino\\libraries\\IRLibProtocols" "C:\\Users\\POP\\Documents\\Arduino\\libraries\\IRLibProtocols\\IRLibSendBase.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

Generating function prototypes...

"C:\\Users\\POP\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\POP\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\POP\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\standard" "-IC:\\Users\\POP\\Documents\\Arduino\\libraries\\IRLibProtocols" "C:\\Users\\POP\\AppData\\Local\\Temp\\arduino_build_164231\\sketch\\rawSend.ino.cpp" -o "C:\\Users\\POP\\AppData\\Local\\Temp\\arduino_build_164231\\preproc\\ctags_target_for_gcc_minus_e.cpp" -DARDUINO_LIB_DISCOVERY_PHASE

"C:\\Users\\POP\\Desktop\\Arduino\\arduino-1.8.13\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\POP\\AppData\\Local\\Temp\\arduino_build_164231\\preproc\\ctags_target_for_gcc_minus_e.cpp"

Compiling sketch...

"C:\\Users\\POP\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\POP\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\POP\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\standard" "-IC:\\Users\\POP\\Documents\\Arduino\\libraries\\IRLibProtocols" "C:\\Users\\POP\\AppData\\Local\\Temp\\arduino_build_164231\\sketch\\rawSend.ino.cpp" -o "C:\\Users\\POP\\AppData\\Local\\Temp\\arduino_build_164231\\sketch\\rawSend.ino.cpp.o"

C:\Users\POP\Documents\Arduino\libraries\IRLib2\examples\rawSend\rawSend.ino: In function 'void loop()':

rawSend:36:19: error: 'rawData' was not declared in this scope

     mySender.send(rawData,RAW_DATA_LEN,36);//Pass the buffer,length, optionally frequency

                   ^~~~~~~

rawSend:36:27: error: 'RAW_DATA_LEN' was not declared in this scope

     mySender.send(rawData,RAW_DATA_LEN,36);//Pass the buffer,length, optionally frequency

                           ^~~~~~~~~~~~

C:\Users\POP\Documents\Arduino\libraries\IRLib2\examples\rawSend\rawSend.ino:36:27: note: suggested alternative: 'RAD_TO_DEG'

     mySender.send(rawData,RAW_DATA_LEN,36);//Pass the buffer,length, optionally frequency

                           ^~~~~~~~~~~~

                           RAD_TO_DEG

Using library IRLibProtocols at version 2.0.19 in folder: C:\Users\POP\Documents\Arduino\libraries\IRLibProtocols 

exit status 1

'rawData' was not declared in this scope

RawData is not the same thing as rawData.

the rawSend example....

void loop() {
  if (Serial.read() != -1) {
    //send a code every time a character is received from the 
    // serial port. You could modify this sketch to send when you
    // push a button connected to an digital input pin.
    mySender.send(rawData,RAW_DATA_LEN,36);//Pass the buffer,length, optionally frequency
    Serial.println(F("Sent signal."));
  }
}

so I'm not sure where you are getting 'RawData' from.

There is a program in examples called "rawRecv" it reads the raw code from your remote. The instructions say copy and paste this data from the Serial monitor and enter it into the "rawSend.ino" file.
That is where the raw data comes from.
I did that, and ran the file. I also ran the sketch with and without the raw data, and both times I get the same error.
Thanks.

It was a typo in my post.