[Help-gnutls] Compiling and linking problems

Adam Langley agl at imperialviolet.org
Thu Dec 29 22:59:31 CET 2005


On 12/29/05, zero_effect at mail.bg <zero_effect at mail.bg> wrote:
> So I have written my first application with GnuTLS, but when
> I decided to compile it, there appears some errors that I
> can't correct. The application is closely based on the SRP
> client example and is written in C++.

You should wrap you #includes like:

extern "C" {
#include <gnutls/gnutls.h>
}

I can't test it out right now, but it should solve your linking error at least.


AGL

--
Adam Langley                                      agl at imperialviolet.org
http://www.imperialviolet.org                       650-283-9641





More information about the Gnutls-help mailing list