[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gnutls] GCRY_THREAD_OPTION_PTHREAD_IMPL!
From: |
Nikos Mavrogiannopoulos |
Subject: |
Re: [Help-gnutls] GCRY_THREAD_OPTION_PTHREAD_IMPL! |
Date: |
Thu, 25 Jun 2009 21:56:45 +0300 |
User-agent: |
Thunderbird 2.0.0.21 (X11/20090409) |
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