Error Compiling for ESP-32 Devkit DOIT V1

In file included from C:\Users\HP\Documents\Arduino\ES_Special\ES_Special.ino:1:0:
C:\Users\HP\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:158:12: error: 'std::isinf' has not been declared
using std::isinf;
^
C:\Users\HP\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:159:12: error: 'std::isnan' has not been declared
using std::isnan;
^
In file included from C:\Users\HP\Documents\Arduino\ES_Special\ES_Special.ino:10:0:
C:\Users\HP\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\HTTPClient\src/HTTPClient.h:142:14: error: 'unique_ptr' in namespace 'std' does not name a template type
typedef std::unique_ptr TransportTraitsPtr;
^
C:\Users\HP\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\HTTPClient\src/HTTPClient.h:234:5: error: 'TransportTraitsPtr' does not name a type
TransportTraitsPtr _transportTraits;
^
C:\Users\HP\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\HTTPClient\src/HTTPClient.h:235:10: error: 'unique_ptr' in namespace 'std' does not name a template type
std::unique_ptr _tcpDeprecated;
^
exit status 1
Error compiling for board DOIT ESP32 DEVKIT V1.

I am getting this error for my code. I tried to upload the blank sketch it worked, but this is not working at all.

Your topic was MOVED to its current forum category as it is more suitable than the original

Hi, have you done the board installation correctly?

The latest ESP32 support is V2.0.2 and it looks like you are using V1.0.6. Go to Tools -> Board: -> Boards Manager...

Put "ESP32" in the filter field at the top of the dialog. You should see that "esp32" is ready for an update. Click on the Update button and wait.

Or select "Updatable" in the Boards Manager "Type" menu and click on the Update button for each package in the list. That should include "esp32".

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.