Hi all,

i want to use the libraries in Crypto++ for my work. So i downloaded the
ECCTest.zip on the site
http://www.cryptopp.com/wiki/Elliptic_Curve_Cryptography
to try it.

But i cannot compile it in Linux. After adding the header files and cpp
files, i still get the errors. The command i use to compile is:
 g++ -Wall -I/*.h -o ecctest ecctest.cpp

And the most errors are:
.....
/tmp/ccGBuqFZ.o:(.rodata._ZTVN8CryptoPP4HMACINS_4SHA1EEE[vtable for
CryptoPP::HMAC<CryptoPP::SHA1>]+0x24): undefined reference to
`CryptoPP::SimpleKeyingInterface::SetKey(unsigned char const*, unsigned int,
CryptoPP::NameValuePairs const&)'
/tmp/ccGBuqFZ.o:(.rodata._ZTVN8CryptoPP4HMACINS_4SHA1EEE[vtable for
CryptoPP::HMAC<CryptoPP::SHA1>]+0x3c): undefined reference to
`CryptoPP::SimpleKeyingInterface::GetNextIV(CryptoPP::RandomNumberGenerator&,
unsigned char*)'
/tmp/ccGBuqFZ.o:(.rodata._ZTVN8CryptoPP4HMACINS_4SHA1EEE[vtable for
CryptoPP::HMAC<CryptoPP::SHA1>]+0x44): undefined reference to
`CryptoPP::HMAC_Base::UncheckedSetKey(unsigned char const*, unsigned int,
CryptoPP::NameValuePairs const&)'
/tmp/ccGBuqFZ.o:(.rodata._ZTVN8CryptoPP4HMACINS_4SHA1EEE[vtable for
CryptoPP::HMAC<CryptoPP::SHA1>]+0x48): undefined reference to
`CryptoPP::HMAC_Base::Restart()'
/tmp/ccGBuqFZ.o:(.rodata._ZTVN8CryptoPP4HMACINS_4SHA1EEE[vtable for
CryptoPP::HMAC<CryptoPP::SHA1>]+0x4c): undefined reference to
`CryptoPP::HMAC_Base::Update(unsigned char const*, unsigned int)'
/tmp/ccGBuqFZ.o:(.rodata._ZTVN8CryptoPP4HMACINS_4SHA1EEE[vtable for
CryptoPP::HMAC<CryptoPP::SHA1>]+0x50): undefined reference to
`CryptoPP::HMAC_Base::TruncatedFinal(unsigned char*, unsigned int)'
......

Do u guys know where i am doing wrong ? Maybe I have compiled the files in
the wrong way :-S

Thanks in advance,
Binh

-- 
View this message in context: 
http://old.nabble.com/ECCTest-example-compile-errors-tp27969344p27969344.html
Sent from the Crypto++ Users mailing list archive at Nabble.com.

-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.

To unsubscribe from this group, send email to 
cryptopp-users+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to