autowrap icon indicating copy to clipboard operation
autowrap copied to clipboard

abstract method causing undefined symbol ImportError

Open mw66 opened this issue 2 years ago • 0 comments

in my source/system.d I have:

class ClassAdapter {
  abstract Field process(Field old);
}

I was able to build the .so file, but under Python, when import:

>>> import mylib
ImportError: mylib.so: undefined symbol: _D6system12ClassAdapter7processMFCQBg5FieldZQl

Change the func to a null impl worked:

  /*abstract*/ Field process(Field old) {return null;};

mw66 avatar Jun 13 '22 06:06 mw66