[Help-gnutls] Re: gnutls/extra.h

Simon Josefsson simon at josefsson.org
Thu Feb 8 15:46:33 CET 2007

dellanna at csp.it writes:

> Hi all,
> can someone send me package gnutls/extra.h?
> If I run
>   cc -o ex-serv-pgp ex-serv-pgp.c -I/usr/lib/ -L/usr/lib/ -lgnutls
> it return
> /tmp/ccAoyU22.o: In function `main':ex-serv-pgp.c:(.text+0x100): undefined
> reference to `gnutls_certificate_set_openpgp_keyring_file'
> This function in gnutls\extra.h. Isn't it istalled by default with gnutls?

You need to read the manual more carefully.  The OpenPGP support is in
the libgnutls-extra library, so you'll need to link to it too:

cc -o ex-serv-pgp ex-serv-pgp.c -lgnutls -lgnutls-extra


More information about the Gnutls-help mailing list