Thank you! that did the trick. Added the lib_ignore and I removed all the global libraries, in fact I removed all the libraries and cleaned the build directory. Compiled no errors.
Just wondering why the dependency graph shows the AsyncTCP file with the 8266 project? Is that just a configuration err and why 4.1.0 never complained about the missing SDKconfig file. The graph below was before the lib_ignore setting, now it doesn’t show the file as a dependency.
Edit: tried to show the graph here but it didn’t display… It showed the AsyncTCP as a dependency of ESP Async WebServer
Thanks again, you saved me many hours of trial and error.
Since you have installed AsyncTCP in the global library storage, it may have been included by the library dependency finder (LDF) when it saw the include for #include <AsyncTCP.h> (ESP Async WebServer has code to include both the ESP32 and ESP8266 libraries), even though it was enclosed in #ifdefs for the ESP32. If you want this behavior to be correct but slower, you need to set lib_ldf_mode = chain+ (docs) which respect the surrounding macros.
Thanks Ivan…I’ll use the lib_ignore for now, I tried chain+ as Max suggested and even deep+ but it didn’t make a difference. Now I know why, thanks for fixing it so quickly. I’ve only been using platformio for 3 or 4 months now and I have to say a bit of a learning curve but well worth it!