I am using latest crypto++ on Mac OS X 10.7

The problem arises when I try to inherit from SHA256 class

#include <sha.h>
class MySha256 : public CryptoPP::SHA256
{
};
int main()
{
  MySha256 sha;
  return 0;
}


I have a linker error:

Undefined symbols for architecture x86_64:
"CryptoPP::SHA256::HashMultipleBlocks(unsigned int const*, unsigned long)", 
referenced from:
vtable for MySha256
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status


SHA1, and SHA512 work fine. When I use SHA256 without inheritance, it also 
works fine. I suspect that assembler usage could be the problem... Anyway I 
need to inherit from SHA256, because I need access to intermediate hash 
state.

-- 
-- 
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.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to