cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Library version.

From: Slav <slavmfm_at_gmail.com>
Date: Sat, 21 Jul 2012 23:24:01 +0300

Hmm, that's really so. I was ascerting that new (1.26) curl is successfully
installed by removing all curl.so files from filesystem and after
installation new curl.so appeared and compilation command is `g++
./main.cpp -L/usr/local/lib -lcurl -o test`.
Why does system builds against some *.so.4 files?

2012/7/21 Dan Fandrich <dan_at_coneharvesters.com>

> On Wed, Jul 18, 2012 at 12:45:13PM +0300, Slav wrote:
> > Hello. I downloaded libcurl from http://curl.haxx.se/download/
> > curl-7.26.0.tar.gz, built it with c-ares using both approaches (with
> symlink to
> > ares sources and using already built ares) but curl_version_info(
> > CURLVERSION_NOW )->version = "7.22.0", curl_version_info(
> CURLVERSION_NOW )->
> > version_num = 0x71600 and (what is the most sad) curl_version_info(
> > CURLVERSION_NOW )->ares = NULL.
> > But LIBCURL_VERSION from curl/curlver.h is defined as "7.26.0".
> > Why is it so?
>
> You're probably dynamically linking against an old libcurl.so.4 lying
> around on the system instead of the new one you just compiled. "ldd
> ./curl" should show you what libraries are being used (on Linux,
> anyway).
>
> >>> Dan
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-07-21