Compile and link with -lhashkit.
libhashkit is a small and thread-safe client library that provides a collection of useful hashing algorithms.
libhashkit
libhashkit is distributed with libmemcached.
libmemcached
Hashkit API
C/C++ Client Library for memcached