On Fri, Nov 14, 2008 at 10:54 AM, oliora <oliora_at_gmail.com> wrote:
> Hello, Jean-Philippe,
> I have try a cURLpp and find that it is need a small patch to be buildable
> under MSVS2005.
>
> There are two strange errors:
> 1>d:\work\trunk\libs\curlpp\curlpp\option.inl(117) : error C2244:
> 'cURLpp::OptionTrait<OptionType,option>::{ctor}' : unable to match function
> definition to an existing declaration
> 1> definition
> 1>
> 'cURLpp::OptionTrait<OptionType,option>::OptionTrait(cURLpp::Option<OptionType>::ParamType)'
> 1> existing declarations
> 1> 'cURLpp::OptionTrait<OptionType,option>::OptionTrait(void)'
> 1>
> 'cURLpp::OptionTrait<OptionType,option>::OptionTrait(OptionContainer<OptionType>::ParamType)'
> 1>d:\work\trunk\libs\curlpp\curlpp\option.inl(163) : error C2244:
> 'cURLpp::NotAvailableOptionTrait<OptionType>::{ctor}' : unable to match
> function definition to an existing declaration
> 1> definition
> 1>
> 'cURLpp::NotAvailableOptionTrait<OptionType>::NotAvailableOptionTrait(cURLpp::Option<OptionType>::ParamType)'
> 1> existing declarations
> 1>
> 'cURLpp::NotAvailableOptionTrait<OptionType>::NotAvailableOptionTrait(void)'
> 1>
> 'cURLpp::NotAvailableOptionTrait<OptionType>::NotAvailableOptionTrait(OptionContainer<OptionType>::ParamType)'
>
> I can't understand why my compiler generate this errors, but I know, how to
> make the code buildable =) Just remove namespace specification near ctor
> parameters:
> cURLpp::OptionTrait< OptionType, option >::OptionTrait(typename Option<
> OptionType >::ParamType value)
> cURLpp::NotAvailableOptionTrait< OptionType
> >::NotAvailableOptionTrait(typename Option< OptionType >::ParamType )
>
> And probably it is a good idea to put all code in .cpp and .inl files into
> the cURLpp namespace (as you have done for .hpp files).
>
> I will hope that my letter helps you to make your great library a little
> bit better.
> If you wish, I can help you with maintaining of cURLpp under MSVS
> environment.
>
Piotr Dobrogost and Andrei Korostelev put efforts to have a working MSVS
environment for cURLpp.
If I was you, I would first try out those changes before going deeper into
your problem. The source
is available here:
http://www.bitbucket.org/jpbarrette/curlpp/overview/
or for direct download:
http://www.bitbucket.org/jpbarrette/curlpp/get/ae7aafc4d3ba.zip
If you still got problems, the better way to solve this would be to invite
Piotr and Andrei into
the conversation. It would be easier if you would subscribe to the
mailing-list:
http://www.rrette.com/mailman/listinfo/curlpp
(BTW I sent this message to the mailing list too).
> Thank you for your library!
>
> Andrey Upadyshev
>
_______________________________________________
cURLpp mailing list
cURLpp_at_rrette.com
http://www.rrette.com/mailman/listinfo/curlpp
Received on 2008-11-14