khoih-prog / EthernetWebServer_SSL

Simple TLS/SSL Ethernet WebServer, HTTP Client and WebSocket Client library for for AVR, Portenta_H7, Teensy, SAM DUE, SAMD21, SAMD51, STM32F/L/H/G/WB/MP1, nRF52 and RASPBERRY_PI_PICO boards using Ethernet shields W5100, W5200, W5500, ENC28J60 or Teensy 4.1 NativeEthernet/QNEthernet. It now supports Ethernet TLS/SSL Client. The library supports HTTP/HTTPS GET and POST requests, provides argument parsing, handles one client at a time. It supports Arduino boards (SAM DUE, Atmel SAM3X8E ARM Cortex-M3, SAMD21, SAMD51, ESP8266, ESP32, Adafruit nRF52, Teensy boards) using Wiznet W5x00 or ENC28J60 network shields. Ethernet_Generic library is used as default for W5x00 with custom SPI
GNU General Public License v3.0
46 stars 10 forks source link

fatal error: vector #30

Closed ggerminiani closed 1 year ago

ggerminiani commented 1 year ago

I'm trying to run the example WeClient_SSL, but I get this error:


In file included from C:\Users\gustavo\Documents\Arduino\libraries\EthernetWebServer_SSL\src/SSLClient/SSLClient.h:28:0,
                 from C:\Users\gustavo\Documents\Arduino\libraries\EthernetWebServer_SSL\src/EthernetWebServer_SSL.hpp:152,
                 from C:\Users\gustavo\Documents\Arduino\libraries\EthernetWebServer_SSL\src/EthernetWebServer_SSL.h:78,
                 from C:\Users\gustavo\AppData\Local\Temp\.arduinoIDE-unsaved20221112-19088-rop1ck.rak6\WebClient_SSL\defines.h:530,
                 from C:\Users\gustavo\AppData\Local\Temp\.arduinoIDE-unsaved20221112-19088-rop1ck.rak6\WebClient_SSL\WebClient_SSL.ino:14:
C:\Users\gustavo\Documents\Arduino\libraries\EthernetWebServer_SSL\src/SSLClient/SSLClientParameters.h:33:10: fatal error: vector: No such file or directory
 #include <vector>
          ^~~~~~~~
compilation terminated.

exit status 1

Compilation error: exit status 1

Could someone help me?

khoih-prog commented 1 year ago

Hi @ggerminiani

Check item 6 of Currently supported Boards

AVR Mega1280, 2560, ADK.. SSL WebClient not supported yet. Check https://github.com/mike-matera/ArduinoSTL/issues/56

Some people could make it working somehow by using Arduino AVR board to 1.8.2. Try using Arduino IDE v1.8.19, not v2.0.0+ and see.

This is not the issue of this library and I'm closing it now. Ask on ArduinoSTL library or Arduino Forum if you need help.

Good Luck,