Skip to content

Conversation

@blackhack
Copy link
Contributor

Description of Change

Similar to #8768

Fixes this linker error:

c:/users/david/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib90a\libBluetoothSerial.a(BluetoothSerial.cpp.o):(.literal._ZN21BTAdvertisedDeviceSetC1ERKS_[_ZN21BTAdvertisedDeviceSetC1ERKS_]+0x0): undefined reference to `vtable for BTAdvertisedDevice'
c:/users/david/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib90a\libBluetoothSerial.a(BluetoothSerial.cpp.o):(.literal._Z41__static_initialization_and_destruction_0ii+0xc): undefined reference to `vtable for BTScanResults'

Tests scenarios

Can be tested with the example "SerialToSerialBT," but when using Arduino as a component, I suppose it's because of what Jason2866 commented about "CONFIG_COMPILER_OPTIMIZATION_SIZE" here.

@me-no-dev me-no-dev merged commit 6357663 into espressif:master Oct 27, 2023
@me-no-dev
Copy link
Member

Thanks @blackhack !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants