symmetryinvestments / autowrap

Wrap existing D code for use in Python, Excel, C#
BSD 3-Clause "New" or "Revised" License
80 stars 16 forks source link

abstract method causing undefined symbol ImportError #307

Closed mw66 closed 1 year ago

mw66 commented 2 years ago

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;};