Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix linker failure when using BluetoothSerial on latest release with Arduino as Component. #8784

Merged
merged 2 commits into from
Oct 27, 2023

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
37 checks passed
@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