Subject: Re:Re: compile error win32 msvc 2005 command line

Re:Re: compile error win32 msvc 2005 command line

From: drswinghead <>
Date: Thu, 15 Apr 2010 16:53:11 +0800 (CST)

i patched this file (of couse drop several line at begin and end of this patch file) to v1.2.5,

the result is
     compile ok, but my program can't work. and privious v1.2.4 works fine in my program.

problem shows that:

this->sess = libssh2_session_init(); // ok
int ret = libssh2_session_startup(this->sess, this->sock); // error with: -9 Failed getting banner

i am using block mode of libssh2.

btw, sience i only have visual studio 2005, i can not open win32/libssh2.dsw properly. i think this project file

is for vc++ 6.0. it too old for msvc2005. i am using qmake's .pro file to manager libssh2 on windows xp.

2010-04-15"Peter Stuge" <> д
>Thank you for the report!
>drswinghead wrote:
>> v1.2.5
>> .\session.c(546) : error C2275: 'fd_set' : illegal use of this type
>> as an expression
>> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winsock2.h
>> (135) : see declaration of 'fd_set'
>I had fixed this, but basically forgot that I had changes in my tree
>that should be pushed.
>Please try the attached patch and report back if it
>1. allows you to compile
>2. actually works for you
>If it works well for you I will push this change. I'd also appreciate
>hearing from Sebastien if this helps RTOS-32.

Received on 2010-04-15