编译 libQtShadowsocks 遇到的问题

error: ‘get_cipher’ is not a member of ‘Botan’
94 | m_filter = Botan::get_cipher(m_cipherInfo.internalName, _key, _iv,
......
error: invalid application of ‘sizeof’ to incomplete type ‘Botan::Keyed_Filter’
82 | static_assert(sizeof(_Tp)>0,

解决方式

在 lib/crypto/cipher.cpp 中增加头文件 #include <botan/filters.h>

原创文章,转载请注明出处:https://www.daiyufish.com/article/error_get_cipher_Botan/