add extern c in hashing