Hi,

I have written a program to perform RSA operation. But i got hundreds of linker     errors. Even the validation test fails when i ran ./crypttest.exe v .

Here is the output i got .....
OS: Linux FC3
Version: cryptopp5.2.1
g++ Version : 3.4.2

CryptoPP::Exception caught: Unexpected error during validation test
Skipping to next test.

Tests complete. Total tests = 16. Failed tests = 16.
SOME TESTS FAILED!


[EMAIL PROTECTED] test]$ g++ -I ../cryptopp521 -L../cryptopp521 -lcryptopp userinput.cpp -o userinput.out
/tmp/cci0qWw3.o(.text+0x612): In function `main':
: undefined reference to `CryptoPP::BufferedTransformation::Get(unsignedchar*, unsigned int)'
/tmp/cci0qWw3.o(.text+0x88e): In function `void CryptoPP::CheckedSetKey<CryptoPP::MessageAuthenticationCodeImpl<CryptoPP::HMAC_Base, CryptoPP::HMAC<CryptoPP::SHA> > >(CryptoPP::MessageAuthenticationCodeImpl<CryptoPP::HMAC_Base, CryptoPP::HMAC<CryptoPP::SHA> >*, CryptoPP::Empty, unsigned char const*, unsigned int, CryptoPP::NameValuePairs const&)':
.
.
.
.
.

: undefined reference to `CryptoPP::AssignIntToInteger'
/tmp/cci0qWw3.o(.gnu.linkonce.t._ZNK8CryptoPP24AlgorithmParametersBase2IPKiE11AssignValueEPKcRKSt9type_infoPv+0x39): In function `CryptoPP::AlgorithmParametersBase2<int const*>::AssignValue(char const*, std::type_info const&, void*) const':
: undefined reference to `CryptoPP::AssignIntToInteger'
/tmp/cci0qWw3.o(.gnu.linkonce.t._ZN8CryptoPP11UnflushableINS_6FilterEE5FlushEbib+0x2e): In function `CryptoPP::Unflushable<CryptoPP::Filter>::Flush(bool, int, bool)':
: undefined reference to `CryptoPP::BufferedTransformation::NULL_CHANNEL'
/tmp/cci0qWw3.o(.gnu.linkonce.t._ZN8CryptoPP8SecBlockIjNS_20AllocatorWithCleanupIjEEEC1ERKS3_+0x25): In function `CryptoPP::SecBlock<unsigned int, CryptoPP::AllocatorWithCleanup<unsigned int> >::SecBlock(CryptoPP::SecBlock<unsigned int, CryptoPP::AllocatorWithCleanup<unsigned int> > const&)':
: undefined reference to `CryptoPP::AllocatorWithCleanup<unsigned int>::allocate(unsigned int, void const*)'
collect2: ld returned 1 exit status

Is there any problem with the way i compiled the library?
I just ran "make" after uncompressing the zip file cryptopp521
Do i need to do any other changes?

Please help me.... Its Urgent

Thanks in advance,

----vijay  


Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.

Reply via email to