I'm trying to use the Crypt++ 5.1 methods.
I wrote a simple program:
doall.cpp:
//////////////////////
#include "cryptlib.h"
#include "base64.h"
using namespace CryptoPP;
int func();
int func(){
}
int main()
{
}
///////////////////////////////
doall.cpp is found in /home/gaimfs
Crypt++ version 5.1 found in: /home/gaimfs/crypto51 (downloaded crypto++ 5.1 zip file and compiled)
cryptest -v works fine, all tests pass
OS: redhat linux 8.0
I run g++ -Icrypto51 doall.cpp and it gives me this bunch of errors:
: undefined reference to `vtable for CryptoPP::FilterWithBufferedInput'
/tmp/ccoCvs3s.o(.gnu.linkonce.d._ZTIN8CryptoPP10BufferlessINS_6FilterEEE+0x8): undefined reference to `typeinfo for CryptoPP::Filter'
/tmp/ccoCvs3s.o(.gnu.linkonce.d._ZTIN8CryptoPP11UnflushableINS_6FilterEEE+0x8): undefined reference to `typeinfo for CryptoPP::Filter'
/tmp/ccoCvs3s.o(.gnu.linkonce.t._ZN8CryptoPP11UnflushableINS_6FilterEE5FlushEbib+0x2b): In function `CryptoPP::Unflushable<CryptoPP::Filter>::Flush(bool, int, bool)':
: undefined reference to `CryptoPP::BufferedTransformation::NULL_CHANNEL'
/tmp/ccoCvs3s.o(.gnu.linkonce.t._ZN8CryptoPP22BufferedTransformationD2Ev+0xb): In function `CryptoPP::BufferedTransformation::~BufferedTransformation [not-in-charge]()':
: undefined reference to `vtable for CryptoPP::BufferedTransformation'
/tmp/ccoCvs3s.o(.gnu.linkonce.t._ZN8CryptoPP22BufferedTransformationD2Ev+0x17): In function `CryptoPP::BufferedTransformation::~BufferedTransformation [not-in-charge]()':
: undefined reference to `vtable for CryptoPP::BufferedTransformation'
collect2: ld returned 1 exit status
any help on how to solve this problem would be great
thank you
amerson
