ESPAsyncWebServer Link Errors

I'm trying to compile an example using the ESPAsymcWebServer library. The compile is successful, but the link fails with dozens of errors, most or all seem to be related to exception handling functions from std::. I've never used most of this stuff, so somewhat at a loss where to look.

I assume it's just some library version incompatibility, but the article I'm working from:

does not specify WHAT library version(s) to use.

Anyone have a clue what is missing, and where?

Here are the errors I'm getting:

E:\Users\RayL\Documents\AppData\Arduino\arduino-1.8.9\libraries\ESPAsyncWebServer\src/StringArray.h:75: undefined reference to `std::__throw_regex_error(std::regex_constants::error_type)'

C:\Users\RayL\AppData\Local\Temp\arduino_build_689415\libraries\ESPAsyncWebServer\WebServer.cpp.o: In function `std::__detail::_Scanner<char const*>::_M_eat_escape()':

E:\Users\RayL\Documents\AppData\Arduino\arduino-1.8.9\libraries\ESPAsyncWebServer\src/StringArray.h:75: undefined reference to `std::__throw_regex_error(std::regex_constants::error_type)'

E:\Users\RayL\Documents\AppData\Arduino\arduino-1.8.9\libraries\ESPAsyncWebServer\src/StringArray.h:75: undefined reference to `std::__throw_regex_error(std::regex_constants::error_type)'

C:\Users\RayL\AppData\Local\Temp\arduino_build_689415\libraries\ESPAsyncWebServer\WebServer.cpp.o:(.text._ZNSt8__detail8_ScannerIPKcE10_M_advanceEv[_ZNSt8__detail8_ScannerIPKcE10_M_advanceEv]+0x6e): undefined reference to `std::__throw_regex_error(std::regex_constants::error_type)'

C:\Users\RayL\AppData\Local\Temp\arduino_build_689415\libraries\ESPAsyncWebServer\WebServer.cpp.o: In function `std::__detail::_Scanner<char const*>::_M_scan_in_bracket()':

E:\Users\RayL\Documents\AppData\Arduino\arduino-1.8.9\libraries\ESPAsyncWebServer\src/StringArray.h:75: undefined reference to `std::__throw_regex_error(std::regex_constants::error_type)'

C:\Users\RayL\AppData\Local\Temp\arduino_build_689415\libraries\ESPAsyncWebServer\WebServer.cpp.o:E:\Users\RayL\Documents\AppData\Arduino\arduino-1.8.9\libraries\ESPAsyncWebServer\src/StringArray.h:75: more undefined references to `std::__throw_regex_error(std::regex_constants::error_type)' follow

C:\Users\RayL\AppData\Local\Temp\arduino_build_689415\libraries\ESPAsyncWebServer\WebServer.cpp.o: In function `std::_Function_base::_Base_manager<std::__detail::_EndTagger<char const*, std::regex_traits<char> > >::_M_init_functor(std::_Any_data&, std::__detail::_EndTagger<char const*, std::regex_traits<char> >&&, std::integral_constant<bool, false>)':

E:\Users\RayL\Documents\AppData\Arduino\arduino-1.8.9\libraries\ESPAsyncWebServer\src/StringArray.h:75: undefined reference to `std::__throw_bad_cast()'

C:\Users\RayL\AppData\Local\Temp\arduino_build_689415\libraries\ESPAsyncWebServer\WebServer.cpp.o: In function `std::__detail::_Compiler<char const*, std::regex_traits<char> >::_M_atom()':

E:\Users\RayL\Documents\AppData\Arduino\arduino-1.8.9\libraries\ESPAsyncWebServer\src/StringArray.h:75: undefined reference to `std::__throw_bad_cast()'

C:\Users\RayL\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/lib\libstdc++.a(istream-inst.o): In function `__check_facet<std::ctype<char> >':

/Users/igrokhotkov/e/ESPTools/crosstool-NG/.build/xtensa-lx106-elf/build/build-cc-gcc-final/xtensa-lx106-elf/libstdc++-v3/include/bits/streambuf_iterator.h:113: undefined reference to `std::__throw_bad_cast()'

C:\Users\RayL\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/lib\libstdc++.a(istream-inst.o): In function `std::istream::operator>>(int&)':

/Users/igrokhotkov/e/ESPTools/crosstool-NG/.build/xtensa-lx106-elf/build/build-cc-gcc-final/xtensa-lx106-elf/libstdc++-v3/include/bits/streambuf_iterator.h:113: undefined reference to `std::__throw_bad_cast()'

C:\Users\RayL\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/lib\libstdc++.a(locale-inst.o): In function `std::ctype<char> const& std::use_facet<std::ctype<char> >(std::locale const&)':

/Users/igrokhotkov/e/ESPTools/crosstool-NG/.build/xtensa-lx106-elf/build/build-cc-gcc-final/xtensa-lx106-elf/libstdc++-v3/include/bits/locale_classes.tcc:114: undefined reference to `std::__throw_bad_cast()'

C:\Users\RayL\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/lib\libstdc++.a(locale-inst.o):/Users/igrokhotkov/e/ESPTools/crosstool-NG/.build/xtensa-lx106-elf/build/build-cc-gcc-final/xtensa-lx106-elf/libstdc++-v3/include/bits/locale_classes.tcc:114: more undefined references to `std::__throw_bad_cast()' follow

C:\Users\RayL\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/lib\libstdc++.a(c++locale.o):(.literal._ZNSt6locale5facet18_S_create_c_localeERPiPKcS1_+0x4): undefined reference to `std::__throw_runtime_error(char const*)'

C:\Users\RayL\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/lib\libstdc++.a(c++locale.o): In function `std::locale::facet::_S_create_c_locale(int*&, char const*, int*)':

/Users/igrokhotkov/e/ESPTools/crosstool-NG/.build/xtensa-lx106-elf/build/build-cc-gcc-final/xtensa-lx106-elf/libstdc++-v3/src/c++98/c++locale.cc:207: undefined reference to `std::__throw_runtime_error(char const*)'

C:\Users\RayL\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/lib\libstdc++.a(ios-inst.o):(.literal._ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate[_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate]+0x4): undefined reference to `std::__throw_ios_failure(char const*)'

C:\Users\RayL\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/lib\libstdc++.a(ios-inst.o): In function `std::basic_ios<char, std::char_traits<char> >::clear(std::_Ios_Iostate)':

/Users/igrokhotkov/e/ESPTools/crosstool-NG/.build/xtensa-lx106-elf/build/build-cc-gcc-final/xtensa-lx106-elf/libstdc++-v3/include/bits/basic_ios.tcc:122: undefined reference to `std::__throw_ios_failure(char const*)'

collect2.exe: error: ld returned 1 exit status

Using library ESP8266WiFi at version 1.0 in folder: C:\Users\RayL\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2\libraries\ESP8266WiFi 
Using library ESPAsyncTCP at version 1.2.2 in folder: E:\Users\RayL\Documents\AppData\Arduino\arduino-1.8.9\libraries\ESPAsyncTCP 
Using library ESPAsyncWebServer at version 1.2.3 in folder: E:\Users\RayL\Documents\AppData\Arduino\arduino-1.8.9\libraries\ESPAsyncWebServer 
Using library Hash at version 1.0 in folder: C:\Users\RayL\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2\libraries\Hash 
Using library Wire at version 1.0 in folder: C:\Users\RayL\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2\libraries\Wire 
Using library SPI at version 1.0 in folder: C:\Users\RayL\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2\libraries\SPI 
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

Regards,
Ray L.

It appears to me many/most of the errors refer to std::regex, and, if I'm reading correctly, to features that are c++11 specific? Could this be the root of the problem?

Regards,
Ray L.

Every error indicates some std:: function missing. So, it appears the std library is not being included in the link. How can that be fixed?

Regards,
Ray L.