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] Multiple #include results in error

From: Jean-Philippe Barrette-LaPierre <jpb_at_rrette.com>
Date: Sat, 2 Apr 2005 11:45:52 -0500

On March 15, 2005 07:25 pm, thomas wrote:
> Hi.
>
> When I #include cURLpp.hpp and Options.hpp in more than one .cc file
> I get this error when compiling:
>
> rr.o(.text+0x100): In function
> `cURLpp::OptionSetter<std::list<cURLpp::FormPart*,
> std::allocator<cURLpp::FormPart*> >,
> (cURL::CURLoption)10024>::setOpt(cURLpp::CurlHandle*, cURLpp::HttpPost
> const&)':
> /usr/include/curlpp/OptionSetter.inl:64: multiple definition of
> `cURLpp::OptionSetter<std::list<cURLpp::FormPart*,
> std::allocator<cURLpp::FormPart*> >,
> (cURL::CURLoption)10024>::setOpt(cURLpp::CurlHandle*, cURLpp::HttpPost
> const&)'
> ezt.o(.text+0x100):/usr/include/curlpp/OptionSetter.inl:64: first defined
> here collect2: ld returned 1 exit status
> make: *** [all] Error 1
>
> I include cURLpp.hpp and Options.hpp in both ezt.cc and rr.cc.
> When commenting out the #includes in one of them, the compilation succeeds,
> but I won't be able to use cURLpp in that file.
>
> Am I doing something wrong here.. or is it supposed to be like this ?
>
> I'm using curlpp-0.5.0-rc4 with GCC version 3.3.4.

curlpp-0.5.0-rc4 is known to have this problem, try curlpp-0.5.0-rc5.

Sorry for the delay, mailman didn't sent me any advice that you were
moderated.

>
> Everything else seems to work like a dream though :)
>
>
> Thomas
> _______________________________________________
> cURLpp mailing list
> cURLpp_at_rrette.com
> http://www.rrette.com/mailman/listinfo/curlpp

-- 
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-02

These mail archives are generated by hypermail.

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

File upload with ASP.NET