Re: R: Squid 3 build errors on Visual Studio

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sun, 23 Aug 2009 23:40:42 +1200

Guido Serassio wrote:
> Hi Amos,
>
>>> Hi,
>>>
>>> Who can help me to fix the following C++ errors on Visual Studio ?
>>>
>>> 1>auth_basic.cc
>>> 1>c:\work\nt-3.0\src\SquidString.h(97) : error C2057: expected
> constant
>> expression
>>> 1>../../../src\auth/User.h(39) : warning C4099:
> 'AuthUserHashPointer' :
>> type name first seen using 'struct' now seen using 'class'
>>> 1> ../../../src\auth/Gadgets.h(51) : see declaration of
>> 'AuthUserHashPointer'
>>> Regards
>>>
>>> Guido
>>>
>> I think the TODO just needs to be enacted.
>> Changing the 'struct' to 'class'.
>>
>
> I need some hints for the SquidString.h error: it's a blocking error.
> I remember you that my C++ knowledge is too much limited.

Hmm, looking deeper there is a few typedefs to clean out as well.

Patch attached.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE6 or 3.0.STABLE18
   Current Beta Squid 3.1.0.13

Received on Sun Aug 23 2009 - 11:40:56 MDT

This archive was generated by hypermail 2.2.0 : Sun Aug 23 2009 - 12:00:05 MDT