mike-matera / ArduinoSTL

An STL and iostream implementation based on uClibc++ that supports my CS-11M class.
GNU General Public License v3.0
325 stars 80 forks source link

can be used in ESP32? #85

Open anmaogo opened 2 years ago

anmaogo commented 2 years ago

How could I install this library on platformIO to be used with ESP32 development boards??

StevenSnow1121 commented 2 years ago

Using NodeMCU-32S complier will result in error like this: In file included from C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5/tools/sdk/esp32/include/freertos/port/xtensa/include/freertos/portmacro.h:54, from C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5/tools/sdk/esp32/include/freertos/include/freertos/portable.h:51, from C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5/tools/sdk/esp32/include/freertos/include/freertos/FreeRTOS.h:63, from C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/Arduino.h:33, from C:\Users\snowb\AppData\Local\Temp\arduino-sketch-DC9A7348C950C5DBCC65409A1FF0D3DF\sketch\adadadv2.ino.cpp:1: c:\users\snowb\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3\lib\gcc\xtensa-esp32-elf\8.4.0\include-fixed\limits.h:120: note: this is the location of the previous definition

define INT_MAX __INT_MAX__

D:\RoBoCpu\Maze\version2\adadadv2\adadadv2.ino:58: warning: "INT_MIN" redefined

define INT_MIN -2147483648

In file included from C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5/tools/sdk/esp32/include/freertos/port/xtensa/include/freertos/portmacro.h:54, from C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5/tools/sdk/esp32/include/freertos/include/freertos/portable.h:51, from C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5/tools/sdk/esp32/include/freertos/include/freertos/FreeRTOS.h:63, from C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/Arduino.h:33, from C:\Users\snowb\AppData\Local\Temp\arduino-sketch-DC9A7348C950C5DBCC65409A1FF0D3DF\sketch\adadadv2.ino.cpp:1: c:\users\snowb\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3\lib\gcc\xtensa-esp32-elf\8.4.0\include-fixed\limits.h:118: note: this is the location of the previous definition

define INT_MIN (-INT_MAX - 1)

In file included from c:\users\snowb\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3\xtensa-esp32-elf\include\c++\8.4.0\stdlib.h:36, from C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5/tools/sdk/esp32/include/newlib/platform_include/assert.h:21, from c:\users\snowb\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3\xtensa-esp32-elf\sys-include\sys\reent.h:503, from C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5/tools/sdk/esp32/include/newlib/platform_include/sys/reent.h:17, from c:\users\snowb\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3\xtensa-esp32-elf\sys-include\stdio.h:60, from C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/Arduino.h:27, from C:\Users\snowb\AppData\Local\Temp\arduino-sketch-DC9A7348C950C5DBCC65409A1FF0D3DF\sketch\adadadv2.ino.cpp:1: c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cstdlib:27:10: error: '::abort' has not been declared using ::abort; ^~~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cstdlib:28:10: error: '::abs' has not been declared using ::abs; ^~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cstdlib:29:10: error: '::atexit' has not been declared using ::atexit; ^~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cstdlib:30:10: error: '::atol' has not been declared using ::atol; ^~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cstdlib:31:10: error: '::atof' has not been declared using ::atof; ^~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cstdlib:32:10: error: '::atoi' has not been declared using ::atoi; ^~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cstdlib:33:10: error: '::bsearch' has not been declared using ::bsearch; ^~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cstdlib:34:10: error: '::calloc' has not been declared using ::calloc; ^~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cstdlib:35:10: error: '::div' has not been declared using ::div; ^~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cstdlib:36:10: error: '::exit' has not been declared using ::exit; ^~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cstdlib:37:10: error: '::free' has not been declared using ::free; ^~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cstdlib:38:10: error: '::getenv' has not been declared using ::getenv; ^~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cstdlib:39:10: error: '::labs' has not been declared using ::labs; ^~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cstdlib:40:10: error: '::ldiv' has not been declared using ::ldiv; ^~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cstdlib:41:10: error: '::malloc' has not been declared using ::malloc; ^~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cstdlib:42:10: error: '::qsort' has not been declared using ::qsort; ^~~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cstdlib:43:10: error: '::rand' has not been declared using ::rand; ^~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cstdlib:44:10: error: '::realloc' has not been declared using ::realloc; ^~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cstdlib:45:10: error: '::srand' has not been declared using ::srand; ^~~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cstdlib:46:10: error: '::strtod' has not been declared using ::strtod; ^~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cstdlib:47:10: error: '::strtol' has not been declared using ::strtol; ^~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cstdlib:48:10: error: '::strtoul' has not been declared using ::strtoul; ^~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cstdlib:49:10: error: '::system' has not been declared using ::system; ^~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cstdlib:63:9: error: 'ldiv_t' does not name a type inline ldiv_t div(long i, long j){ ^~ In file included from C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5/tools/sdk/esp32/include/newlib/platform_include/assert.h:21, from c:\users\snowb\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3\xtensa-esp32-elf\sys-include\sys\reent.h:503, from C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5/tools/sdk/esp32/include/newlib/platform_include/sys/reent.h:17, from c:\users\snowb\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3\xtensa-esp32-elf\sys-include\stdio.h:60, from C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/Arduino.h:27, from C:\Users\snowb\AppData\Local\Temp\arduino-sketch-DC9A7348C950C5DBCC65409A1FF0D3DF\sketch\adadadv2.ino.cpp:1: c:\users\snowb\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3\xtensa-esp32-elf\include\c++\8.4.0\stdlib.h:38:12: error: 'std::abort' has not been declared using std::abort; ^~~~~ c:\users\snowb\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3\xtensa-esp32-elf\include\c++\8.4.0\stdlib.h:39:12: error: 'std::atexit' has not been declared using std::atexit; ^~ c:\users\snowb\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3\xtensa-esp32-elf\include\c++\8.4.0\stdlib.h:40:12: error: 'std::exit' has not been declared using std::exit; ^~~~ In file included from c:\users\snowb\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3\xtensa-esp32-elf\include\c++\8.4.0\math.h:36, from C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/esp32-hal.h:30, from C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/Arduino.h:36, from C:\Users\snowb\AppData\Local\Temp\arduino-sketch-DC9A7348C950C5DBCC65409A1FF0D3DF\sketch\adadadv2.ino.cpp:1: c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:51:10: error: '::acos' has not been declared using ::acos; ^~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:52:10: error: '::asin' has not been declared using ::asin; ^~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:53:10: error: '::atan' has not been declared using ::atan; ^~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:54:10: error: '::atan2' has not been declared using ::atan2; ^~~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:55:10: error: '::ceil' has not been declared using ::ceil; ^~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:56:10: error: '::cos' has not been declared using ::cos; ^~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:57:10: error: '::cosh' has not been declared using ::cosh; ^~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:58:10: error: '::exp' has not been declared using ::exp; ^~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:59:10: error: '::fabs' has not been declared using ::fabs; ^~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:60:10: error: '::floor' has not been declared using ::floor; ^~~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:61:10: error: '::fmod' has not been declared using ::fmod; ^~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:62:10: error: '::frexp' has not been declared using ::frexp; ^~~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:63:10: error: '::ldexp' has not been declared using ::ldexp; ^~~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:64:10: error: '::log' has not been declared using ::log; ^~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:65:10: error: '::log10' has not been declared using ::log10; ^~~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:66:10: error: '::modf' has not been declared using ::modf; ^~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:67:10: error: '::pow' has not been declared using ::pow; ^~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:68:10: error: '::sin' has not been declared using ::sin; ^~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:69:10: error: '::sinh' has not been declared using ::sinh; ^~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:70:10: error: '::sqrt' has not been declared using ::sqrt; ^~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:71:10: error: '::tan' has not been declared using ::tan; ^~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:72:10: error: '::tanh' has not been declared using ::tanh; ^~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath: In function 'float std::abs(float)': c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:76:10: error: 'fabsf' was not declared in this scope return fabsf(x); ^~~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:76:10: note: suggested alternative: 'abs' return fabsf(x); ^~~~~ abs c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath: In function 'float std::acos(float)': c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:79:10: error: 'acosf' was not declared in this scope return acosf(x); ^~~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:79:10: note: suggested alternative: 'acos' return acosf(x); ^~~~~ acos c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath: In function 'float std::asin(float)': c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:82:10: error: 'asinf' was not declared in this scope return asinf(x); ^~~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:82:10: note: suggested alternative: 'asin' return asinf(x); ^~~~~ asin c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath: In function 'float std::atan(float)': c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:85:10: error: 'atanf' was not declared in this scope return atanf(x); ^~~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:85:10: note: suggested alternative: 'atan' return atanf(x); ^~~~~ atan c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath: In function 'float std::atan2(float, float)': c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:88:10: error: 'atan2f' was not declared in this scope return atan2f(y, x); ^~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:88:10: note: suggested alternative: 'atan2' return atan2f(y, x); ^~ atan2 c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath: In function 'float std::ceil(float)': c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:91:10: error: 'ceilf' was not declared in this scope return ceilf(x); ^~~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:91:10: note: suggested alternative: 'ceil' return ceilf(x); ^~~~~ ceil c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath: In function 'float std::cos(float)': c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:94:10: error: 'cosf' was not declared in this scope return cosf(x); ^~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:94:10: note: suggested alternative: 'cos' return cosf(x); ^~~~ cos c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath: In function 'float std::cosh(float)': c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:97:10: error: 'coshf' was not declared in this scope return coshf(x); ^~~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:97:10: note: suggested alternative: 'cosh' return coshf(x); ^~~~~ cosh c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath: In function 'float std::exp(float)': c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:100:10: error: 'expf' was not declared in this scope return expf(x); ^~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:100:10: note: suggested alternative: 'exp' return expf(x); ^~~~ exp c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath: In function 'float std::fabs(float)': c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:103:10: error: 'fabsf' was not declared in this scope return fabsf(x); ^~~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:103:10: note: suggested alternative: 'fabs' return fabsf(x); ^~~~~ fabs c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath: In function 'float std::floor(float)': c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:106:10: error: 'floorf' was not declared in this scope return floorf(x); ^~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:106:10: note: suggested alternative: 'floor' return floorf(x); ^~ floor c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath: In function 'float std::fmod(float, float)': c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:109:10: error: 'fmodf' was not declared in this scope return fmodf(x, y); ^~~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:109:10: note: suggested alternative: 'fmod' return fmodf(x, y); ^~~~~ fmod c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath: In function 'float std::frexp(float, int)': c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:112:10: error: 'frexpf' was not declared in this scope return frexpf(x, exp); ^~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:112:10: note: suggested alternative: 'frexp' return frexpf(x, exp); ^~ frexp c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath: In function 'float std::ldexp(float, int)': c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:115:10: error: 'ldexpf' was not declared in this scope return ldexpf(x, exp); ^~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:115:10: note: suggested alternative: 'ldexp' return ldexpf(x, exp); ^~ ldexp c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath: In function 'float std::log(float)': c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:118:10: error: 'logf' was not declared in this scope return logf(x); ^~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:118:10: note: suggested alternative: 'log' return logf(x); ^~~~ log c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath: In function 'float std::log10(float)': c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:121:10: error: 'log10f' was not declared in this scope return log10f(x); ^~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:121:10: note: suggested alternative: 'log10' return log10f(x); ^~ log10 c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath: In function 'float std::modf(float, float)': c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:124:10: error: 'modff' was not declared in this scope return modff(x, inptr); ^~~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:124:10: note: suggested alternative: 'modf' return modff(x, inptr); ^~~~~ modf c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath: In function 'float std::pow(float, float)': c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:127:10: error: 'powf' was not declared in this scope return powf(x, y); ^~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:127:10: note: suggested alternative: 'pow' return powf(x, y); ^~~~ pow c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath: In function 'float std::pow(float, int)': c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:131:34: error: call of overloaded 'pow(double, double)' is ambiguous return pow((double)x, (double)y); ^ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:126:15: note: candidate: 'float std::pow(float, float)' inline float pow (float x, float y){ ^~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:130:15: note: candidate: 'float std::pow(float, int)' inline float pow (float x, int y){ ^~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath: In function 'float std::sin(float)': c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:135:10: error: 'sinf' was not declared in this scope return sinf(x); ^~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:135:10: note: suggested alternative: 'sin' return sinf(x); ^~~~ sin c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath: In function 'float std::sinh(float)': c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:138:10: error: 'sinhf' was not declared in this scope return sinhf(x); ^~~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:138:10: note: suggested alternative: 'sinh' return sinhf(x); ^~~~~ sinh c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath: In function 'float std::sqrt(float)': c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:141:10: error: 'sqrtf' was not declared in this scope return sqrtf(x); ^~~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:141:10: note: suggested alternative: 'sqrt' return sqrtf(x); ^~~~~ sqrt c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath: In function 'float std::tan(float)': c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:144:10: error: 'tanf' was not declared in this scope return tanf(x); ^~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:144:10: note: suggested alternative: 'tan' return tanf(x); ^~~~ tan c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath: In function 'float std::tanh(float)': c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:147:10: error: 'tanhf' was not declared in this scope return tanhf(x); ^~~~~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/cmath:147:10: note: suggested alternative: 'tanh' return tanhf(x); ^~~~~ tanh In file included from c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/char_traits:22, from c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/iosfwd:21, from c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/iterator:21, from c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/algorithm:19, from C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/Arduino.h:162, from C:\Users\snowb\AppData\Local\Temp\arduino-sketch-DC9A7348C950C5DBCC65409A1FF0D3DF\sketch\adadadv2.ino.cpp:1: c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/memory: In function 'std::pair<T, int> std::get_temporary_buffer(ptrdiff_t)': c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/memory:105:33: error: there are no arguments to 'malloc' that depend on a template parameter, so a declaration of 'malloc' must be available [-fpermissive] retval.first = static_cast<T>(malloc(n * sizeof(T))); ^~ c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/memory:105:33: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) In file included from C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/Arduino.h:162, from C:\Users\snowb\AppData\Local\Temp\arduino-sketch-DC9A7348C950C5DBCC65409A1FF0D3DF\sketch\adadadv2.ino.cpp:1: c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/algorithm: In function 'void std::random_shuffle(RandomAccessIterator, RandomAccessIterator)': c:\Users\snowb\Documents\Arduino\libraries\ArduinoSTL-master\src/algorithm:778:31: error: there are no arguments to 'rand' that depend on a template parameter, so a declaration of 'rand' must be available [-fpermissive] iter_swap(first, (first + (rand() % (last - first) ) ) ); ^~~~ In file included from C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/Arduino.h:174, from C:\Users\snowb\AppData\Local\Temp\arduino-sketch-DC9A7348C950C5DBCC65409A1FF0D3DF\sketch\adadadv2.ino.cpp:1: C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/HardwareSerial.h: At global scope: C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/HardwareSerial.h:68:14: error: 'function' in namespace 'std' does not name a template type typedef std::function<void(void)> OnReceiveCb; ^~~~ C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/HardwareSerial.h:68:9: note: 'std::function' is defined in header ''; did you forget to '#include '? C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/HardwareSerial.h:54:1: +#include

C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/HardwareSerial.h:68:9: typedef std::function<void(void)> OnReceiveCb; ^~~ C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/HardwareSerial.h:69:14: error: 'function' in namespace 'std' does not name a template type typedef std::function<void(hardwareSerial_error_t)> OnReceiveErrorCb; ^~~~ C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/HardwareSerial.h:69:9: note: 'std::function' is defined in header ''; did you forget to '#include '? typedef std::function<void(hardwareSerial_error_t)> OnReceiveErrorCb; ^~~ In file included from C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/Arduino.h:174, from C:\Users\snowb\AppData\Local\Temp\arduino-sketch-DC9A7348C950C5DBCC65409A1FF0D3DF\sketch\adadadv2.ino.cpp:1: C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/HardwareSerial.h:101:20: error: 'OnReceiveCb' has not been declared void onReceive(OnReceiveCb function, bool onlyOnTimeout = false); ^~~ C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/HardwareSerial.h:104:25: error: 'OnReceiveErrorCb' has not been declared void onReceiveError(OnReceiveErrorCb function); ^~~~ C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/HardwareSerial.h:170:5: error: 'OnReceiveCb' does not name a type OnReceiveCb _onReceiveCB; ^~~ C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/HardwareSerial.h:171:5: error: 'OnReceiveErrorCb' does not name a type OnReceiveErrorCb _onReceiveErrorCB; ^~~~ In file included from C:\Users\snowb\AppData\Local\Temp\arduino-sketch-DC9A7348C950C5DBCC65409A1FF0D3DF\sketch\adadadv2.ino.cpp:1: C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/Arduino.h:180:12: error: 'std::isinf' has not been declared using std::isinf; ^~~~~ C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/Arduino.h:181:12: error: 'std::isnan' has not been declared using std::isnan; ^~~~~ C:\Users\snowb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/Arduino.h:184:12: error: 'std::round' has not been declared using std::round;

Ebola-Chan-bot commented 3 weeks ago

See my fork that should have fixed this.