www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: libcurl + libssh2: strange error on Win64 (compiled using VS 2008)

Re: libcurl + libssh2: strange error on Win64 (compiled using VS 2008)

From: Vincent Torri <vincent.torri_at_gmail.com>
Date: Wed, 29 Dec 2010 19:20:14 +0100

On Wed, Dec 29, 2010 at 6:26 PM, S.Gopi <sekargopi_at_yahoo.com> wrote:

> Hi All,
> Sorry for not replying quickly. For some reason my subscription to the
> list is set to digest mode and I didn't receive any of your mails (and my
> digest mail went to spam folder)
> To reply all your questions:
> * I don't have a simple code to just demonstrate this, but if you guys
> insist on this then I can work on that.
> * As I understand, the problem is libssh2 is returning a unsigned int (int)
> which libcurl typecasts in to __int64. Am I correct ? If yes, I expect the
> actual fix should be at libssh2, is that correct ? (I am CC'ing this to
> libssh2-devel list as well)
> * I don't want to reinvest my time to get this work in mingw-w64. I spent a
> good few days to get this whole thing setup and I wish to avoid that (and
> any other problem that may come out of mingw-w64).
> * Also what is the guarantee that the same issue won't happen if I use
> mingw-w64 ? is it because ssize_t is declared correctly in mingw-w64 ?

look into io.h to see ho ssize_t is declared in mingw-w64 headers. But as
another poster mentioned it, use SSIZE_T on Windows:


Vincent Torri

libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-12-29

the libssh2 team