New an error is reported as follows:
error: invalid new expression of abstract class type XXX
Reason:
the subclass does not fully implement the pure virtual function of the parent class, that is, some functions in the parent class are not implemented in the subclass. The first line of error will prompt which function is not implemented.
Solution:
delete the pure virtual function not implemented in the parent class or implement it in the child class
Read More:
- std::dynamic_pointer_cast Error: source type is not polymorphic
- A mistake about implicitly providing default constructors
- [Solved] Qt Vtk wglMakeCurrent failed in MakeCurrent(), error: The handle is invalid.
- How to Solve Android Arouter Frame Autowired Error
- [Solved] MindSpore Error: For ‘CellList’, each cell should be subclass of Cell
- Using elementui El-dialog as a subcomponent to close an error
- [Solved] cortex_M3 freeRTOS Error: undefined reference to `_sbrk‘
- [Solved] Error: The superclass, ‘Animal‘, has no unnamed constructor that takes no arguments.
- [Solved] QT Programme Error: error: no matching function for call to…
- maven Error: Element ‘dependency’ cannot have character [children], because the type’s content type is
- Android 10: How to Solve Systemui Error
- Flash back problem when Android studio plays music in sdcard through intent
- Visual Studio 2012 error C4996: ‘scanf’: This function or variable may be unsafe.
- PySpark error: AttributeError: ‘NoneType‘ object has no attribute ‘_jvm‘
- [Solved] Android Room: Database Common Error ‘missing database’
- Linux C++ Error: invalid use of incomplete type [How to Solve]
- [Solved] rqt_graph Skipped loading plugin with error & Format: “dot“ not recognized
- Solution for Visual Studio 2012 compilation error [error C4996:’scanf’: This function or variable may be unsafe.]
- C++ Error: terminating with uncaught exception of type std::out_of_range: vector Abort trap: 6
- How to Solve Error Swift 4 Expression type ‘@value CGRect’ is ambiguous without more context