cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Compiling with Mingw32, am I missing something ??

From: Guenter Knauf <eflash_at_gmx.net>
Date: Fri, 11 Apr 2008 21:07:58 +0200

Hi,
please dont hijack other posts - instead post a reply to what you got back from me to keep mail history intact. I have changed back to original subject.

>> The MINGW version _MINGW32_VERSION 2.4
>>
>> The gcc version 3.2 <mingw specail 20020817-1>

ok, that explains; both is very old, and I would really suggest that you update to a more recent version;
f.e. I have a gcc version 3.2.3 (mingw special 20030504-1) which has _MINGW32_VERSION 3.1, and that defines already ssize_t; so since we are talking about a free compiler I think its time to update after almost 5 years; f.e. I recomment and use 3.4.5 which works great (though I dont use the Dev-CPP IDE integration).
If you really dont want to upgrade for whatever reason then you can edit sys/types.h and add:
#ifndef _SSIZE_T_
#define _SSIZE_T_
typedef long _ssize_t;
 
#ifndef _NO_OLDNAMES
typedef _ssize_t ssize_t;
#endif
#endif /* Not _SSIZE_T_ */
 
but I dont recomment that; better you upgrade.

Guenter.
Received on 2008-04-11