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

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -