Subject: Re: [libssh2] How to Compile libssh2 and exemples under windows ?

Re: [libssh2] How to Compile libssh2 and exemples under windows ?

From: Neil Gierman <ngierman_at_roadrunn.com>
Date: Thu, 3 Jul 2008 11:30:03 -0500

What I did is copy win32\libssh2_config.h to src\libssh2_config.h and that
took care of all of my issues for both VS2005 and VS2008. Not tried with VC6

-----Original Message-----
From: libssh2-devel-bounces_at_lists.sourceforge.net
[mailto:libssh2-devel-bounces_at_lists.sourceforge.net] On Behalf Of DAO
Anh-Viet
Sent: Thursday, July 03, 2008 11:15 AM
To: libssh2-devel_at_lists.sourceforge.net
Subject: [libssh2] How to Compile libssh2 and exemples under windows ?

Dear Sirs,

I am trying to compile the new libcurl version 7.18.1 and libssh2
version 0.18 in order to user the protocol SFTP under Windows.
But I meet the problem of lacking the include file, for example while
compiling libssh2 version 0.18, I must de-active many

Included file, such as:

/* use O_NONBLOCK for non-blocking sockets */ /*#define HAVE_O_NONBLOCK
1*/

/* Define to 1 if you have the `poll' function. */ /*#define HAVE_POLL
1*/

/* Define to 1 if you have the `select' function. */ /*#define
HAVE_SELECT 1*/

/* use SO_NONBLOCK for non-blocking sockets */
/* #undef HAVE_SO_NONBLOCK */

/* Define to 1 if you have the <stdint.h> header file. */
/* #undef HAVE_STDINT_H */

And then I must also deactive these include file:

/* Define to 1 if you have the <sys/ioctl.h> header file. */ /*#define
HAVE_SYS_IOCTL_H 1*/

/* Define to 1 if you have the <sys/select.h> header file. */ #define
HAVE_SYS_SELECT_H 1

/* Define to 1 if you have the <sys/socket.h> header file. */ /*#define
HAVE_SYS_SOCKET_H 1*/

/* Define to 1 if you have the <sys/stat.h> header file. */ #define
HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/time.h> header file. */

/*#define HAVE_SYS_TIME_H 1*/
/* Define to 1 if you have the <sys/types.h> header file. */ #define
HAVE_SYS_TYPES_H 1

/* Define to 1 if you have the <sys/uio.h> header file. */ /*#define
HAVE_SYS_UIO_H 1*/

/* Define to 1 if you have the <unistd.h> header file. */ /*#define
HAVE_UNISTD_H 1*/

And now I am blocked here by lacking of 'socklen_t'

 
..\src\session.c(349) : error C2065: 'socklen_t' : undeclared identifier
..\src\session.c(349) : error C2146: syntax error : missing ';' before
identifier 'option_len'
..\src\session.c(349) : error C2065: 'option_len' : undeclared
identifier

NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'

Someone can help me, which procedure I have followed to compile
successful under Windows, I use VC 6. I have exported libssh2_lib.mak
from libssh2_lib.dsw

Thank for your helps

Best regards

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2008-07-03