Skip to content

Won't compile in Debug mode: undefined reference to `_ZTVN10iotwebconf17WebRequestWrapperE' #289

@fourwheel

Description

@fourwheel

Hi!
I would like to build in VSCode with Platformio in debug mode (by putting build_type = debug into platformio.ini)
Unfortunatelly, the built will run into an error for unresolved symbols.

The error message I receive is:

c:/users/XYZ/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcu\src\main.cpp.o:(.text._ZNSt17_Function_handlerIFvvEZ5setupEUlvE_E9_M_invokeERKSt9_Any_data+0x4): undefined reference to _ZTVN10iotwebconf17WebRequestWrapperE' c:/users/XYZ/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcu\src\main.cpp.o: in function _ZNSt14_Function_baseD4Ev':
C:\Users\XYZ.platformio\packages\framework-arduinoespressif8266\cores\esp8266/WString.h:210: undefined reference to _Z11configSavedv' c:/users/XYZ/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcu\lib8da\libIotWebConf.a(IotWebConf.cpp.o):(.text._ZN10iotwebconf10IotWebConfC2EPKcP9DNSServerPNS_16WebServerWrapperES2_S2_+0x0): undefined reference to _ZTVN10iotwebconf16WebServerWrapperE'

I was searching the internet and found this post, where the same/similar problem is described: https://sysprogs.com/w/forums/topic/cant-compile-debug-configuration-for-esp8226-and-iotwebconf/

Any hints, any tips?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions