khoih-prog / EthernetWebServer

This is simple yet complete WebServer library for AVR, AVR Dx, Portenta_H7, Teensy, SAM DUE, SAMD21/SAMD51, nRF52, STM32, RP2040-based, etc. boards running Ethernet shields. The functions are similar and compatible to ESP8266/ESP32 WebServer libraries to make life much easier to port sketches from ESP8266/ESP32. Coexisting now with `ESP32 WebServer` and `ESP8266 ESP8266WebServer` libraries. Ethernet_Generic library is used as default for W5x00 with custom SPI
MIT License
178 stars 49 forks source link

multiple definition of base64 error with ver. 1.8.3 #44

Closed Nourbakhsh-Rad closed 2 years ago

Nourbakhsh-Rad commented 2 years ago

Hi, After upgrading to version 1.8.3, the following error is observed during compilation

multiple definition of base64_init_encodestate
multiple definition of base64_encode_value
multiple definition of base64_encode_block
multiple definition of base64_encode_blockend
multiple definition of base64_encode_chars

I am using ESP-12E with ENC28J60 Ethernet module and Arduino IDE version 1.8.16 with ESP8266 core 3.0.2

khoih-prog commented 2 years ago

Hi @Nourbakhsh-Rad

Thanks for the bug report. I just forgot that ESP8266 already has the lib64 in the core and then the

#if !(ESP32 || ESP8266)

...

#endif

in the files cdecode.c and cencode.c.

You can add those lines in the above-mentioned files if can't wait.

Will update the master and publish a new release soon.

Regards,

khoih-prog commented 2 years ago

Hi @Nourbakhsh-Rad

The new EthernetWebServer releases v1.8.4 has just been published. Your contribution is noted in Contributions and Thanks

Best Regards,


Releases v1.8.4

  1. Fix libb64 compile error for ESP8266. Check multiple definition of base64 error with ver. 1.8.3 #44
  2. Update Packages' Patches
Nourbakhsh-Rad commented 2 years ago

Thank you for your prompt action ..... @khoih-prog