Hi

I put all 22 examples into one project changing functions names to 
mainN just to check if all compile.
In example 2 and 21 there are used the same variable (data) and 
function (readData) and when both of them are in the same project 
one gets linker error "already defined..." which in VS2008 looks 
like this:

example21.obj : error LNK2005:
"unsigned int __cdecl readData(char *,unsigned int,unsigned int)" 
(?readData@@[EMAIL PROTECTED])
already defined in example02.obj

Maybe that would be better to put these variable and function in 
examples 2 and 21 in unnamed namespace?
That makes linker happy.

Regards
Piotr Dobrogost
_______________________________________________
cURLpp mailing list
[email protected]
http://www.rrette.com/mailman/listinfo/curlpp

Reply via email to