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] readData() function and data variable in examples 2 and 21 "already defined" linker error

From: Piotr Dobrogost <curlpp_at_2008.autoera.pl>
Date: Sun, 02 Nov 2008 18:13:25 +0100

jpbarrette_at_gmail.com wrote:

> I don't seen any reason to not put them in anonymous namespaces. However
> i found it peculiar that you need to need to have one project that
> creates only one executable. Aren't you able to have everything in the
> same project, but many targets?

I could create one .exe for each example but I put them together
into one .exe and can choose which to run by giving the number of
example as the first argument.
The point is someone sooner or later will try to do similar thing
and we could save him a trouble. That's all.

Looking at this in broader perspective I have a feeling all global
entities used in any compilation unit as a part of implementation
(without showing them in public interface - in the header file)
should be put in anonymous namespace.

Regards
Piotr Dobrogost
_______________________________________________
cURLpp mailing list
cURLpp_at_rrette.com
http://www.rrette.com/mailman/listinfo/curlpp
Received on 2008-11-02

These mail archives are generated by hypermail.

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

File upload with ASP.NET