I'm trying to build a protocol that uses bitcoin headers. When I'm creating a PKhash object from a publick key, I'm receiving this error:

/usr/bin/ld: /home/user/bitcoin/src/libbitcoin_common.a(libbitcoin_common_a-standard.o): in function `CHash160::CHash160()': /home/user/bitcoin/src/./hash.h:46: undefined reference to `CSHA256::CSHA256()'

The code I created the hash from it from:

std::vector<unsigned char >byteRepr(tag.c_str(), tag.c_str() + tag.length()); CPubKey key(byteRepr); PKHash hash (key);