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

invalid new-expression of abstract class type 'esphome::frekvenspanel::Panel' #1

Open
lollokara opened this issue Nov 20, 2022 · 0 comments · May be fixed by #2
Open

invalid new-expression of abstract class type 'esphome::frekvenspanel::Panel' #1

lollokara opened this issue Nov 20, 2022 · 0 comments · May be fixed by #2

Comments

@lollokara
Copy link

Hi!

I'm trying to replicate your setup, (Actually migrating to ESP32).
But i do encounter this error
src/main.cpp: In function 'void setup()': src/main.cpp:863:50: error: invalid new-expression of abstract class type 'esphome::frekvenspanel::Panel' 863 | frekvenspanel_panel = new frekvenspanel::Panel(); | ^ In file included from src/esphome.h:24, from src/main.cpp:3: src/esphome/components/frekvens_panel/frekvens-panel.h:12:7: note: because the following virtual functions are pure within 'esphome::frekvenspanel::Panel': 12 | class Panel : public PollingComponent, | ^~~~~ In file included from src/esphome.h:17, from src/main.cpp:3: src/esphome/components/display/display_buffer.h:373:23: note: 'virtual esphome::display::DisplayType esphome::display::DisplayBuffer::get_display_type()' 373 | virtual DisplayType get_display_type() = 0; | ^~~~~~~~~~~~~~~~ Compiling .pioenvs/frekvens8266-weather/lib2b6/ESP8266WiFi/WiFiClient.cpp.o *** [.pioenvs/frekvens8266-weather/src/main.cpp.o] Error 1

Do you happen to be able to understand where is the error and how to fix it?
Thanks a lot!

@lollokara lollokara linked a pull request Nov 21, 2022 that will close this issue
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 a pull request may close this issue.

1 participant