Subject: Re: MS Visual Studio 2005 Compile problem

Re: MS Visual Studio 2005 Compile problem

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 6 Jul 2010 14:50:15 +0200 (CEST)

On Tue, 6 Jul 2010, Dmitry Teslenko wrote:

> I've managed to compile libssh2 itself but stumbled upon compiling
> examples. Here's error log of msvc compiler for sftp.c example:

...

> Am I missing some include/define?

Line 620 uses ssize_t which looks to be typedef'ed on line 82, but only if you
have LIBSSH2_WIN32 defined... So yes, define that on the command line.

Can anyone see a reason why we need LIBSSH2_WIN32 _and_ _MSC_VER and not just
the latter?

-- 
  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-07-06