crankyoldgit / IRremoteESP8266

Infrared remote library for ESP8266/ESP32: send and receive infrared signals with multiple protocols. Based on: https://github.com/shirriff/Arduino-IRremote/
GNU Lesser General Public License v2.1
2.84k stars 810 forks source link

Unable to include C libraries #2083

Closed karantejassp closed 2 months ago

karantejassp commented 2 months ago

Version/revision of the library used

2.8.6

Describe the bug

I'm trying to compile example files for receiving IR signals using the Arduino Cloud IDE. The inlude for many header files is missing while trying to compile. The error message is like the following:

In file included from /mnt/create-efs/webide/9e/87/9e879e4336aea3a9e53fc1faf5565892:karantejas/libraries_v2/IRremoteESP8266/src/IRac.h:15:0,

from /mnt/create-efs/webide/9e/87/9e879e4336aea3a9e53fc1faf5565892:karantejas/libraries_v2/IRremoteESP8266/src/IRac.cpp:7:

/mnt/create-efs/webide/9e/87/9e879e4336aea3a9e53fc1faf5565892:karantejas/libraries_v2/IRremoteESP8266/src/ir_Argo.h:14:10: fatal error: set: No such file or directory

#include <set>

^~~~~

compilation terminated.

I actually faced this issue with IDE on my laptop. To check if it was a issue with my laptop, I used the Arduino cloud.

To Reproduce

1. Open the Arduino Cloud IDE. 2. Upload the IRremoteESP8266 Library. 3. Compile the IRecvDump3 example.

Example code used

IRecvDump3

NiKiZe commented 2 months ago

So you have this issue both with local Arduino studio, and cloud?

Which device are you trying to build for?

karantejassp commented 2 months ago

Hey @NiKiZe, Yeah I'm facing it for both Arduino Studio and cloud. I'm using a Arduino Uno board, but I haven't yet plugged the device, I'm just trying to compile the code.

NiKiZe commented 2 months ago

I'm using a Arduino Uno board,

So reading https://github.com/crankyoldgit/IRremoteESP8266/blob/master/README.md

This library enables you to send and receive infra-red signals on an ESP8266 or an ESP32 using the Arduino framework

Try using a library suitable for your device, more info in FAQ and other issues, please try the search function ;)