eclipse - Undefined reference in C with gcrypt.h -
eclipse - Undefined reference in C with gcrypt.h -
i'm trying utilize library gcrypt.h show error:
undefined reference `gcry_md_get_algo_dlen'
the code is:
int algo = gcry_md_sha1; unsigned int hash_len = gcry_md_get_algo_dlen(algo); unsigned char hash[hash_len];
how can prepare it?
make sure have recent version of library http://www.gnupg.org/download/#libgcrypt
if have right version create sure added library linker settings in eclipse.
to so:
right-click on project -> properties / c/c++build / settings / gcc c++ linker / libraries
there add together libraries "gcrypt" ( don't @ "lib" ) , create sure ( if lib isnt under scheme path ) add together path library lies.
c eclipse
Comments
Post a Comment