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

Error compling under Arduino IDE for Due with Ethernet shield #15

Closed terryzar closed 2 years ago

terryzar commented 2 years ago

Describe the bug

Arduino IDE compile error for both the MQTTClient_SSL.ino and MQTTClient_SSL_Complex.ino examples: Here is output from the Arduino IDE:

libraries\EthernetWebServer_SSL-main\SSLClient\SSLClientParameters.cpp.o: In function `std::vector<char, std::allocator<char> >::_M_check_len(unsigned int, char const*) const':

c:\users\tzarnowski\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1\arm-none-eabi\include\c++\4.8.3\bits/stl_vector.h:1339: undefined reference to `std::__throw_length_error(char const*)'

collect2.exe: error: ld returned 1 exit status

Steps to Reproduce

Open either of the examples in the Arduino IDE and compile for Arduino Due

Expected behavior

No compiler errors

Actual behavior

Compile error as described above

Debug and AT-command log (if applicable)

NA

Screenshots

If applicable, add screenshots to help explain your problem.

Information

Please ensure to specify the following:

Example

Arduino IDE version: 1.8.13
ESP32 Core Version 1.0.5
OS: Ubuntu 20.04 LTS
Linux xy-Inspiron-3593 5.4.0-66-generic #74-Ubuntu SMP Wed Jan 27 22:54:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Context:
I encountered an endless loop while trying to connect to Local WiFi.

Steps to reproduce:
1. ...
2. ...
3. ...
4. ...

Additional context

Add any other context about the problem here.

khoih-prog commented 2 years ago

I can compile without any error. Check your installation and read and follow the Prerequisites.

Selection_112