cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curlpp mailing list Archives

Re: [cURLpp] Fwd: Re: Curlpp compilation issues

From: Jean-Philippe Barrette-LaPierre <jpb_at_rrette.com>
Date: Wed, 27 Apr 2005 10:23:28 -0400

On April 27, 2005 10:03 am, Jean-Philippe Barrette-LaPierre wrote:
> I tried this and it still included "-Werror" in the Makefiles which I
> had to remove manually.
>

--disable-werror can disable it

> Rather than specify this option, I think that the gcc specific warning
> flags should only be enabled when the compiler has been verified to be
> gcc rather than having to explicitly turn these flags off.
>

You're right, but we should do both. We should automaticaly disable the "W"
options when it's not gcc, but we should keep the option to disable it
manually.

> For this compiler, the appropriate option is probably "+w".  However,
> even without that the compiler issues warnings when compiling its own
> standard library so I'm not sure how useful it really would be.
>
> >> Aside from those fairly minor issues, it seems to work pretty well.
> >> Thanks for your efforts!
> >
> > Thanks for your patch!
>
> My pleasure, glad to be able to help and it's also great to see that
> you've folded in what I've done into the next release so quickly.  
> Thank you.
>

As Eric Raymond said: "Release early, release often".

> May I ask a quick question?  I'm trying to get the HTTP return status
> code from a request.  In the libcurl docs, I should be able to get this
> by calling curl_easy_getinfo() with CURLINFO_RESPONSE_CODE.  I can't
> see a way to get at that using libcurlpp, I was wondering whether I'd
> missed something or hasn't that been implemented (yet)?
>

It hasn't been implemented yet. I'm leaving for one month, and I don't have
the time to do it right now (occupied by the preparatives). In a few minutes
I'll do a release with a function (cURLpp::Easy::getHandle) that will return
the CURL * handle. Then you'll be able to do the getinfo call. But remember,
the CURL pointer will only be valid untill the Easy instance is alive.

> Thanks.
>
>         Ben.

-- 
Jean-Philippe Barrette-LaPierre
Maintener of cURLpp (http://rrette.com/curlpp)
_______________________________________________
cURLpp mailing list
cURLpp_at_rrette.com
http://www.rrette.com/mailman/listinfo/curlpp
Received on 2005-04-27

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET