sorry Crypto++ guys, but after I spend 2 hours by trying to figure out
how everything works ( documentation sucks, sorry ) and after this
when I got the linker error, I sad that's enough for me and started to
look around for another crypt library.
After a few google I found the Botan library http://botan.randombit.net/
I spent 5 mins to read its docs, then solved my problem in another 10
mins.
so, what I want to say to you Naja, you may want to look at Botan
library too.
Have fun.
On Feb 20, 11:01 am, "Naja Melan" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Im trying to use crypto++, but Im a complete beginner at linux, C++ and
> eclipse, and its not really working out... I want to write a hash
> calculator to get the hang of C++ and Qt and wanted to use the crypto++
> library for the hash functions. I have gotten this far:
>
> downloaded crypto from sourceforge, then unzip -a, make all install. All
> without errors :)
> (I tried before compiling it in eclipse, and that gave about 300 errors, i
> don't understand why...)
>
> Now i would like to use it for a managed make C++ project in Eclipse (other
> small C++ apps compile, build and run without problem). I have the right dir
> in my include path (/usr/include/cryptopp/)* *and made a little test source
> to see what happens:
>
> #include "sha.h"
> using namespace CryptoPP;
>
> int main()
> {
> * SHA hash;*
> return 0;
>
> }
>
> The marked line gives the following errors:
>
> 1. */usr/include/cryptopp/cryptlib.h* undefined reference to `vtable
> for CryptoPP::HashTransformation'
> 2. */usr/include/cryptopp/iterhash.h* undefined reference to
> `CryptoPP::IteratedHashBase<unsigned int,
> CryptoPP::HashTransformation>::IteratedHashBase()'
> 3. */usr/include/cryptopp/iterhash.h* undefined reference to
> `CryptoPP::SHA1::InitState(unsigned int*)'
> 4. */usr/include/cryptopp/iterhash.h* undefined reference to
> `CryptoPP::SHA1::Transform(unsigned int*, unsigned int const*)'
> 5. */usr/include/cryptopp/iterhash.h* undefined reference to `vtable
> for CryptoPP::IteratedHashBase<unsigned int, CryptoPP::HashTransformation>'
>
> So, the obvious question,... What am i doing wrong...
>
> Also i have an other question. As the make install also generated some sort
> of shared library, i wondered, if i write an app and compile it, will it be
> stand alone, or will it need this library to be shipped with it... If so is
> it possible to have it completely standalone, and is that usefull... I just
> havent got a clue about all this...
>
> Thank you very much in advance for any help, hints and explanations
>
> greets
> naja
--~--~---------~--~----~------------~-------~--~----~
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.
-~----------~----~----~----~------~----~------~--~---