thanks all, it works ! The problem is i forgot to tell the compiler about the compiled library. The command posted by R S should solve the problem ...
CF Triton wrote: > > > Yes, the link to the compiled library (-lcryptopp) should solve Binh's > problems as well.... cft > > --- En date de : Dim 21.3.10, R S <[email protected]> a écrit : > > De: R S <[email protected]> > Objet: Re: ECCTest example compile errors > À: "Binh Luong" <[email protected]> > Cc: [email protected] > Date: Dimanche 21 mars 2010, 16h13 > > I used ECCTest.zip source recently on linux without problems. > Here is what I compiled with > g++ -I<your path to cryptopp> -L<our path to libcrypto.a> -g ecctest.cpp > -lcryptopp > > On Sat, Mar 20, 2010 at 1:09 PM, Binh Luong <[email protected]> wrote: > > 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, > > > > > > > -- > 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. > > -- View this message in context: http://old.nabble.com/ECCTest-example-compile-errors-tp27969344p28034974.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.
