Errors during compiling - object of abstract class type "ScintillaWX" is not allowed, cannot instantiate abstract class

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
Bormental
In need of some credit
In need of some credit
Posts: 1
Joined: Sun Jan 31, 2021 4:44 am

Errors during compiling - object of abstract class type "ScintillaWX" is not allowed, cannot instantiate abstract class

Post by Bormental »

Hello, i need to compile old sources of wxScintilla of 13-Jan-2000 to x64, the project was for MS Visual Studio 2005
I opened it in latest MS Visual Studio 2019, it renewed that project OK, i have changed project configuration to x64 but when i have try to compile the project MS Studio gives me errors in file wxscintilla.cpp (https://pastebin.com/4vtfUn2U) :

Code: Select all

Error (active)	E0322	object of abstract class type "ScintillaWX" is not allowed:	wxscintilla	..\libs\wxScintilla\src\wxscintilla.cpp	170	

Error	C2259	'ScintillaWX': cannot instantiate abstract class	wxscintilla	..\src\wxscintilla.cpp	170
string 170 :

Code: Select all

    m_swx = new ScintillaWX(this);
thats the header ScintillaWX.h that includes in wxscintilla.cpp in which class ScintillaWX is initiated - https://pastebin.com/GtX3Yb3y
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Errors during compiling - object of abstract class type "ScintillaWX" is not allowed, cannot instantiate abstract cl

Post by ONEEYEMAN »

Hi,
Why do you want the old version?
Did you look at stc sample on how to work with scintilla?

Thank you.
Post Reply