Re: Asking about compiling libcurl with libssh2 in Windows VC98
Date: Tue, 25 Nov 2008 22:52:00 -0800
Ngo Hoa Lan Phuong wrote:
> I added /DUSE_LIBSSH2, /DHAVE_LIBSSH2 /DHAVE_LIBSSH2_H in my CFLAGS,
> using libssh2.lib in LINKLIBS:
> The step of compilation with cl.exe and link.exe was passed well. But
> when I'm using libcurl to test SFTP I've got a code return
> CURLE_UNSUPPORTED_PROTOCOL of curl_easy_perform function.
Are you building libcurl yourself or using someone else's binary?
Whether libcurl supports sftp or not is determined by the options in
effect at the time that libcurl itself was built, not at the point where
you use it in your code. Enabling those defines in your code after the
fact will not (and can not) change anything. It sounds like you are
using a pre-built libcurl binary that was did not have sftp support
enabled, in which case you simply need to build it yourself with the
Received on 2008-11-26