cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: static linking with libssh2

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

"Andrei Jakab" <drei222_at_gmail.com> 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?

--gv
Received on 2008-08-29