-->
Page 1 of 1

Deep search failing to find all the includes

PostPosted: Sat Jun 06, 2020 5:03 am
by Mart8266
I've successfully built Arduino projects using Arduino and Visual Studio IDEs with Visual Micro. I've rebuilt my PC and have the latest VS2019 (Community 16.6.1) and VM (20_05_18_1).

I'm trying to compile an ESP8266 programme (unchanged from earlier this year when it compiled OK) and get errors where the compiler is unable to find various #includes.

I'm using the library manager in VS to pull in the esp8266 libraries. I've tried different versions of the library - 2.6.1, 2.6.3, 2.7.1.

With 2.7.1 I fail:

arduino.h: 238:21: fatal error: algorithm: No such file or directory
#include <algorithm>
compilation terminated

The arduino.h is in "Arduino/cores/esp8266/" - where is <algorithm> ?

I've been manually searching for the various missing includes and copying them to a folder referenced in the "Deep Search" log - but can't find <algorithm>.

As this all used to work I'm pulling my hair out trying to work out what's changed and how I can fix this.

Many Thanks,

Mart