Problem with #include <list>

I am working on a sketch to read temp & humidity from a DHT22 and then push it to an InfluxDB database so I can track the temperature in the room my home server lives in. I am using the ESP8266 Influxdb Library for InfluxDB. However, when I go to Verify/Compile my sketch I get the following error.

In file included from D:\Documents\Arduino\Arduino_Sensor_Data\Arduino_Sensor_Data.ino:6:0:

D:\Documents\Arduino\libraries\ESP8266_Influxdb/InfluxDb.h:16:16: fatal error: list: No such file or directory

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

Does anyone have any ideas what could be causing this?

Where is the list file located. If it is in the sketch folder try

#include "list";

The notation looks in the libraries folder for the file, the "list" notation looks in the sketch folder.

If you want better help than my wild ass guess, post the code.

Does anyone have any ideas what could be causing this?

My crystal ball says: Something wrong in your code (which you did not bother to provide....)?

Regards,
Ray L.

You are compiling ESP8266 code for an Arduino UNO. Select the correct ESP8266 board from the menu in the IDE.

The list header is part of the C++ standard template library, which is not available on 8-bit AVR Arduinos.

Pieter

Also interested in how this was solved!

ferfede87:
Also interested in how this was solved!

It's solved by compiling the code for the architecture it was written for (in this case ESP8266). Trying to use code that was specifically written for ESP8266 on an Uno will never work, even if you have an ESP8266 connected to the Uno.