Mdash compatibility with ESP-IDF v 4.0

I upgradated the ESP-IDF from version 3.3 to 4.0 (latest stable). With the older version (v3.3) the mDash.a library dont have any problem: work correctly but, with the new version (v4.0), when linking the library “libmDash.a” have this fatal error:

c:/users/stefano/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/…/lib/gcc/xtensa-esp32-elf/8.2.0/…/…/…/…/xtensa-esp32-elf/bin/ld.exe: C:/Source/Felmar/main/…/mDash/src/esp32\libmDash.a:(.literal+0x4b0): undefined reference to `lwip_recvfrom_r’

c:/users/stefano/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/…/lib/gcc/xtensa-esp32-elf/8.2.0/…/…/…/…/xtensa-esp32-elf/bin/ld.exe: C:/Source/Felmar/main/…/mDash/src/esp32\libmDash.a: in function `cli_cat’:

/Users/lsm/src/cesanta.com/alib/cli.c:28: undefined reference to `lwip_recvfrom_r’

collect2.exe: error: ld returned 1 exit status

The new version (v4.0) is compatible.?

1 Like

Same problem for me.

1 Like

mdash library is kept in sync with the Arduino for ESP32.
Thus, the same library works fine with both Arduino and ESP-IDF.
The current Arduino version is, afaik, 3.3
Thus the ESP-IDF projects that use mdash library, must use 3.3

As soon as Arduino ESP32 switches to branch 4, so will mdash library.

Thank you very much lsm!

Maurizio