[gnutls-dev] Gnutls for windows with microsoft compiler

Simon Josefsson simon at josefsson.org
Mon May 21 18:36:34 CEST 2007


Christian Häne <christian.haene at gmx.ch> writes:

> Hello
>
> I'm trying to compile a program which includes gnutls.h under windows with 
> microsoft C/C++ Compiler. But there are some errors in the gnutls.h file and 
> I can't figure out the problem. This is the output I get:
>
> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 
> 80x86
> Copyright (C) Microsoft Corporation.  All rights reserved.
>
> secure_net.c
> E:\GnuTLS-1.7.8\include\gnutls/gnutls.h(411) : error C2061: syntax error : 
> ident
> ifier 'gnutls_record_send'

You need to define 'ssize_t' somehow.  For example, build using
'./configure CFLAGS=-Dssize_t=long'.

/Simon




More information about the Gnutls-devel mailing list