[Help-gnutls] GCRY_THREAD_OPTION_PTHREAD_IMPL!

Nikos Mavrogiannopoulos nmav at gnutls.org
Thu Jun 25 20:56:45 CEST 2009


John D wrote:
> Hello
> 
> This:
> 
>  #include <gnutls.h>
>  #include <gcrypt.h>
>  #include <errno.h>
>  #include <pthread.h>
> GCRY_THREAD_OPTION_PTHREAD_IMPL;
> 
>           int main()
>           {
>              /* The order matters.
>               */
>              gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
>              gnutls_global_init();
>           }
> 
> 
> Compiles flawlessly on debian 5 64bit..
> 
> However, on Cent OS 5 64 bit..
> With an identical setup and gcc produces:

It seems your compiler treats the .cpp file as C++. Try including stdio
and stdlib.

regards,
Nikos





More information about the Gnutls-help mailing list