Re: R: Squid 3 build errors on Visual Studio - problem still present

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Thu, 17 Sep 2009 12:52:43 +0200

tor 2009-09-17 klockan 11:15 +0200 skrev Guido Serassio:

> It fails:
>
> vs_string.cc
> c:\work\vc_string\vs_string.cc(1) : error C2371: 'size_t' :
> redefinition; different basic types

Gah, should have been unsigned long.. but interesting that VS apparently
has size_t built-in. It was declared in the preprocessed source as

typedef __w64 unsigned int size_t;

> c:\work\vc_string\vs_string.cc : see declaration of 'size_t'
> c:\work\vc_string\vs_string.cc(34) : error C2057: expected constant
> expression

Good. so it seems the test case worked.

now replace std with testcase and try again, both in namespace and the
failing assignment just to make sure it's not tripping over something
else built-in.

> Do you need the preprocessed source ?

No, that was preprocessed already with no includes or other preprocessor
directives.

Regards
Henrik
Received on Thu Sep 17 2009 - 10:52:53 MDT

This archive was generated by hypermail 2.2.0 : Thu Sep 24 2009 - 12:00:07 MDT