编译easyMule_Libs的时候报个错误:
'CryptoPP::AlignedAllocator::allocate' : unable to match function definition to an existing declaration
c:/projects/cryptlib/integer.h(45) : see declaration of 'CryptoPP::AlignedAllocator::allocate'
definition
'AllocatorBase::pointer CryptoPP::AlignedAllocator::allocate(CryptoPP::AlignedAllocator::size_type,const void *)'
existing declarations
'T *CryptoPP::AlignedAllocator::allocate(CryptoPP::AlignedAllocator::size_type,const void *)'
修改方法是将integer.cpp中的:
template
CPP_TYPENAME AllocatorBase::pointer AlignedAllocator::allocate(size_type n, const void *)
修改为:
template
CPP_TYPENAME AlignedAllocator::pointer AlignedAllocator::allocate(size_type n, const void *)
本文解决了一个在编译easyMule_Libs过程中遇到的错误:'CryptoPP::AlignedAllocator::allocate':无法匹配函数定义到现有声明。通过调整integer.cpp文件中的模板参数,成功解决了编译问题。
1万+

被折叠的 条评论
为什么被折叠?



