Closed ArseniyKholod closed 7 months ago
I'm not sure why this worked before, but for static methods you should use something like this (note the extra module()
) :
wrapped.module().method("PrivateKeyImpl__SerializedVersion", &WrappedT::SerializedVersion);
Otherwise, it is assumed that a member function is wrapped. Since that is not the case here, none of the methods for adding a member function match, because the function pointer type is different, resulting in a quite verbose error here.
Thanks! It works now!!!
@barche I truly appreciate you taking the time to help us out - thank you very much for your support!
Hello, I try to move one of the projects, that is wrapped by
libcxxwrap-julia
from version v0.11.2 to the latest one. And I encountered some problems, that could be issued by breaking changes introduced by @melven on v0.12.0.In
openfhe-julia
we wrap using the following code the typePrivateKeyImpl
.The last line
wrapped.method("PrivateKeyImpl__SerializedVersion", &WrappedT::SerializedVersion);
fails usinglibcxxwrap-julia
starting with v0.12.0.Part of the code that is wrapped:
wrapped.method("SerializedObjectName", &WrappedT::SerializedObjectName);
works fine.wrapped.method("PrivateKeyImpl__SerializedVersion", &WrappedT::SerializedVersion);
fails. The only essential reason between these two methods I see, thatSerializedVersion
is astatic
function.Could it be the case, that changes between 0.11.2 and 0.12.0 introduced the problem with
static
methods? Thank you in advance!Initial opened
Issue
: sloede/OpenFHE.jl#43 Comment with compiling commands: https://github.com/sloede/OpenFHE.jl/issues/43#issuecomment-2050332797 Used system: Ubuntu 20.04.6 LTS, The CXX compiler identification is GNU 10.5.0Full error log: