> on line 82 in libssh2.h, there is a #if clause like this,
> #if defined(LIBSSH2_WIN32) && defined(_MSC_VER) && (_MSC_VER <= 1400)
> when compile with vc++2010, which _MSC_VER is 1600, it throw lots error,
> so i see and try modify the libssh2.h, change it last clause to _MSC_VER
<=1600, it works fine.
> is that the right method for resolving this problem?
Can you send an example of which errors? I compiled another version of my
project recently with VS 2010 and saw a bunch of errors that were in fact
related to a bug in the MS C++ Headers from the 6.0A SDK. Please see this
forum posting and see if it is related to your error.
http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/9f8bfaae-fce0
-4878-ae47-ca553ddb3d0f. The version of my project I tried to compile is an
older version and uses libssh2 0.18 which did compile fine after I fixed one
of my headers in the way suggested by the link above. I have not tried to
compile the newer versions of libssh2 in VS 2010.
Neil
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-05-04