cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Asking about compiling libcurl with libssh2 in Windows VC98

From: Anh Viet DAO <vietda_at_yahoo.com>
Date: Tue, 23 Jan 2007 14:08:35 -0800 (PST)

Hi,
   
  I have finished to compile the Curl in Windows with VC98. And the functions
  SFTP and SCP works well in Windows also.
   
  Thank for your help.
   
  Best regards

Daniel Stenberg <daniel_at_haxx.se> wrote:
  On Sat, 20 Jan 2007, Anh Viet DAO wrote:

> How does Curl support SFTP and SCP in Windows ?

I'm not sure anyone has tried it yet. But please help us smoothen it out.

> I would to try to compile libcurl version snapshot 7.16.1-20070111, libcurl
> was compiled in static lib with parameter -DCURL_STATICLIB in Windows to use
> with others libraries.
>
> And the I add the following three parameters to compile libcurl in static
> mode with libssh2 /DUSE_LIBSSH2, /DHAVE_LIBSSH2 /DHAVE_LIBSSH2_H in my
> CFLAGS.

Sounds like a good start. The defines could of course also be added in
lib/config-win32.h if you'd prefer that.

> These parameters were added in file Makefile.vc6 in two directory
> $CURLROOT/lib and $CURLROOT/src the step of compilation with cl.exe was
> passed well. But in the step of linking with link.exe, i have had the
> problem of linking error as following :
>
> libcurl.lib(ssh.obj) : error LNK2001: unresolved external symbol
> _Curl_scp_recv libcurl.lib(ssh.obj) ... and other unresolved symbol

You haven't added lib/ssh.o to the makefile then so it hasn't compiled it and
doesn't link with it - which it must for the SSH-related protocols to work.

-- 
Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
 
---------------------------------
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
Received on 2007-01-23