0

我想使用 PySeal 库,它是 Microsoft SEAL 库的 python fork 版本。使用 Visual Studio 的 x64 本机工具命令提示符手动构建库时。我收到了这个错误:

src/wrapper.cpp(352): note: ou       'seal::Evaluator'
src/wrapper.cpp(352): error C2784: 'unknown-type pybind11::detail::overload_cast_impl<seal::Plaintext &,seal::parms_id_type>::operator ()(Return (__cdecl Class::* )(seal::Plaintext &,seal::parms_id_type),std::false_type) noexcept const' : impossible de déduire l'argument modèle pour 'Return (__cdecl Class::* )(seal::Plaintext &,seal::parms_id_type)' à partir de 'overloaded-function'
test\SEAL-Python\pybind11\include\pybind11\detail/common.h(1013): note: voir la déclaration de 'pybind11::detail::overload_cast_impl<seal::Plaintext &,seal::parms_id_type>::operator ()'
src/wrapper.cpp(352): error C2780: 'unknown-type pybind11::detail::overload_cast_impl<seal::Plaintext &,seal::parms_id_type>::operator ()(Return (__cdecl Class::* )(seal::Plaintext &,seal::parms_id_type) const,std::true_type) noexcept const' : 2 arguments attendus - 1 fournis  
test\SEAL-Python\pybind11\include\pybind11\detail/common.h(1019): note: voir la déclaration de 'pybind11::detail::overload_cast_impl<seal::Plaintext &,seal::parms_id_type>::operator ()'
src/wrapper.cpp(486): error C2672: 'operator __surrogate_func' : fonction correspondante surchargée introuvable
src/wrapper.cpp(352): error C2784: 'unknown-type pybind11::detail::overload_cast_impl<seal::Ciphertext &>::operator ()(Return (__cdecl *)(seal::Ciphertext &)) noexcept const' : impossible de déduire l'argument modèle pour 'Return (__cdecl *)(seal::Ciphertext &)' à partir de 'overloaded-function'  

我使用 seal3.7-lib,python 3.7。我正在寻找专家的帮助

4

0 回答 0