cURL / Mailing Lists / curl-library / Single Mail


libcurl build on windows x64

From: Daniel Stenberg <>
Date: Mon, 8 May 2006 07:42:58 +0200 (CEST)


We got this "trick" suggested by Bastiaan Stougie(*) and I wanted to know how
we would deal with it the best way:

    A fix to get libcurl working on Windows x64: in config-win32.h, change:

    #define ssize_t int


    #define ssize_t SSIZE_T

    or you will get stack corruption (int is 32-bit on x64, and ssize_t
    pointers are cast to size_t pointers in the curl code, where size_t is
    64-bit on x64).

(*) =

  Commercial curl and libcurl Technical Support:
Received on 2006-05-08