Hi Wim, On 21 July 2017 at 03:17, <wlavrij...@lbl.gov> wrote: > _ffi.cdef(""" > void _ZN6SimpleC1Ev(void*); > void _ZN6SimpleC1Ei(void*, int); > int _ZN6Simple8get_dataEv(void*); > void _ZN6Simple8set_dataEi(void*, int); > """)
Ouch, I suppose :-) Explicit C++ mangling. The alternative would be to use ffi.set_source() instead of ffi.dlopen(), and use a C++ compiler again to produce the cffi binding. This reduces cppyy to a generator emitting a cffi build script. But as you mentioned there are additional issues, e.g. with instantiation of templates. A bientôt, Armin. _______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev