紧急求助!!!C++编译的问题,在线等!
我用g++编译一段程序,但是出现如下错误:
g++ -fpermissive -O2 -w -pipe -c cryptlib.cpp
cryptlib.cpp: In member function `virtual long unsigned int
CryptoPP::BufferedTransformation::MaxRetrievable() const':
cryptlib.cpp:169: no matching function for call to `
CryptoPP::BufferedTransformation::CopyTo(CryptoPP::BitBucket) const'
cryptlib.h:318: candidates are: virtual long unsigned int
CryptoPP::BufferedTransformation::CopyTo(CryptoPP::BufferedTransformation&,
long unsigned int) const
cryptlib.cpp: In member function `virtual unsigned int
CryptoPP::BufferedTransformation::Get(byte*, unsigned int)':
cryptlib.cpp:196: no matching function for call to `
CryptoPP::BufferedTransformation::TransferTo(CryptoPP::ArraySink, unsigned
int&)'
cryptlib.h:312: candidates are: virtual long unsigned int
CryptoPP::BufferedTransformation::TransferTo(CryptoPP::BufferedTransformation&,
long unsigned int = 0ffffffff)
CryptoPP是名字空间,CopyTo,TransferTo都有实现和定义,但是不知为何老是说不匹配?
难道g++不支持默认参数?但是我改掉了,好像也不行,请各位高手指教!!!
CopyTo,TransferTo的原型如下:
virtual unsigned long CopyTo(BufferedTransformation &target, unsigned long copyMax=ULONG_MAX) const;
virtual unsigned long TransferTo(BufferedTransformation &target, unsigned long transferMax=ULONG_MAX);