cURL / Mailing Lists / curl-library / Single Mail


Re: static linking with libssh2

From: Gisle Vanem <>
Date: Fri, 29 Aug 2008 15:08:40 +0200

"Andrei Jakab" <> wrote:

> I'm using Visual Studio 2008 on a Windows 32 system and I'm attempting to
> create a static libcurl library with SFTP support. I'm running into trouble
> linking with the libssh2 library. I have already compiled the openssl
> (0.9.8h) and the libssh2 (0.18) libraries as static libraries.

The only way to build libssh2 as a static-lib is to add '-DLIBSSH2_API=' to
your CFLAGS (when building libcurl also). Did you?

Received on 2008-08-29