-
Notifications
You must be signed in to change notification settings - Fork 126
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
Error compiling code - vtable undefined #388
Comments
Please try with the latest version is 3.1.0 |
Please name the Espressif32 Arduino Core Version, the board and the sketch you're trying to compile. |
I have no issues compiling the switch example for ESP32C6 Dev Module
|
Still same error. My code (power measure):
|
After adding a few missing lines to your sketch above
The sketch compiles fine:
|
Yes, I have those header lines. I used a new computer, reinstalled board/library, still getting this: /Users/IoT/Library/Arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld: /private/var/folders/5w/fptbs2sd1fs1wcpbs_78bfcr0000gp/T/arduino/sketches/1CA1E89C3A493BAF4696B37BD3D9326E/sketch/PowerSensor.ino.cpp.o: in function `SINRICPRO_3_1_0::SinricProDeviceInterface::SinricProDeviceInterface()': SinricProDeviceInterface.h:9: undefined reference to `vtable for SINRICPRO_3_1_0::SinricProDeviceInterface' SinricProDeviceInterface.h:9: undefined reference to `vtable for SINRICPRO_3_1_0::SinricProDeviceInterface' /Users/IoT/Library/Arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld: SinricProInterface.h:16: undefined reference to collect2: error: ld returned 1 exit status exit status 1 Compilation error: exit status 1 |
Hi,
I will try on my local setup and try to replicate |
Hi, Mac Tried 3 built-in examples with the same error. |
Does a simple "Hello World" compile?
|
Come on, Sivar :) Ok it's uploading on a different mac user... No idea why. I'm online :) |
You never know ... ;) What I wanted to say: Does this error also occur with other sketches? But it is strange that it works with another user. |
I also get this error if I add
Im using the following in my playformio file
|
Please try if this also happens without the Arduino 3.0.3 packages (espressif32 @ 6.8.1 is Arduino Core 2.0.17) |
I fixed this by downgrading the ESP32 in boards manager down to 2.0.13 |
i also face same issue please help me |
Some users suggest uninstalling everything and reinstalling worked for them
Can you share the following so we can reproduce.
Arduino IDE version
Arduino-ESP core version for ESP32 / ESP8266
OS and Version
…On Wed, 6 Nov 2024 at 5:55 PM Akashxohani ***@***.***> wrote:
i also face same issue please help me
—
Reply to this email directly, view it on GitHub
<#388 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZAZZQAWMZQTWHHMX7J2NDZ7HYTHAVCNFSM6AAAAABKELT3DGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJZGQZTEMBQGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hi, getting error with "undefined reference to vtable" during compiling. Please help?
HW - esp32c6
Error:
/Users/IoT/Library/Arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld: /private/var/folders/5w/fptbs2sd1fs1wcpbs_78bfcr0000gp/T/arduino/sketches/32815A3D67364512A0EE046AE4D8E164/sketch/main.ino.cpp.o: in function
SINRICPRO_3_0_1::SinricProDeviceInterface::SinricProDeviceInterface()': .../SinricPro/src/SinricProDeviceInterface.h:9: undefined reference to
vtable for SINRICPRO_3_0_1::SinricProDeviceInterface'/Users/IoT/Library/Arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld: /Users/IoT/Pyro-E Dropbox/Kevin Lu/Pyro-E/PyroE codes/Arduino/libraries/SinricPro/src/SinricProDeviceInterface.h:9: undefined reference to
vtable for SINRICPRO_3_0_1::SinricProDeviceInterface' /Users/IoT/Library/Arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld: /private/var/folders/5w/fptbs2sd1fs1wcpbs_78bfcr0000gp/T/arduino/sketches/32815A3D67364512A0EE046AE4D8E164/sketch/main.ino.cpp.o: in function
SINRICPRO_3_0_1::SinricProInterface::SinricProInterface()':.../src/SinricProInterface.h:16: undefined reference to
vtable for SINRICPRO_3_0_1::SinricProInterface' /Users/IoT/Library/Arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld: .../src/SinricProInterface.h:16: undefined reference to
vtable for SINRICPRO_3_0_1::SinricProInterface'collect2: error: ld returned 1 exit status
exit status 1
Compilation error: exit status 1
The text was updated successfully, but these errors were encountered: