cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl and libssh2

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Thu, 8 Oct 2009 11:39:30 +0200

On Thu October 8 2009 10:03:34 Xu, Qiang (FXSGSC) wrote:
> > -----Original Message-----
> > From: Kamil Dudka [mailto:kdudka_at_redhat.com]
> > Sent: Thursday, October 08, 2009 4:04 PM
> > To: Xu, Qiang (FXSGSC)
> > Cc: curl-library_at_cool.haxx.se
> > Subject: Re: libcurl and libssh2
> >
> > It looks so, but I am not sure if dynamic linkage is the only
> > way to use libbsh2. To ensure yourself run 'curl --version'
> > with the appropriate libcurl.so loaded if possible.
>
> Our printer does not use the executable "curl", but only its library. In
> this case, can I know its version? One more thing is, how to ensure
> libcurl.so is compiled with the support of libssh2.so?

If you are at least able to compile/run a simple program using your
libcurl.so, you can do it as following:

#include <curl/curl.h>

int main()
{
    printf("%s\n", curl_version());
}

Kamil
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-10-08