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

2009-09-24 Thread Guido Serassio
Hi Henrik, Sorry again for the delay ... :-( 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

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

2009-09-17 Thread Guido Serassio
Hi Henrik, Odd... std::string::npos is declared as follows: namespace std; templateclass _Elem, class _Traits, class _Ax class basic_string : public _String_val_Elem, _Ax { public: static const size_type npos; };

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

2009-09-17 Thread Henrik Nordstrom
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

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

2009-09-14 Thread Guido Serassio
Hi Henrik, Can you produce a preprocessed source? That's the output of just the preprocessor, not actual compilarion, comparable to gcc -E option. Easier to identify what the compiler actually saw that way... Done. Sorry for the delay, but I'm very busy (as usual ...) I have placed the

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

2009-09-14 Thread Henrik Nordstrom
mån 2009-09-14 klockan 11:27 +0200 skrev Guido Serassio: Done. Sorry for the delay, but I'm very busy (as usual ...) I have placed the preprocessed source of two failing files (IpIntercept.cc and QosConfig.cc) here: http://www.acmeconsulting.it/libip.zip Odd... std::string::npos is

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

2009-09-02 Thread Guido Serassio
://www.acmeconsulting.it -Messaggio originale- Da: Amos Jeffries [mailto:squ...@treenet.co.nz] Inviato: martedì 1 settembre 2009 10.43 A: Henrik Nordstrom Cc: Guido Serassio; Robert Collins; squid-dev@squid-cache.org Oggetto: Re: R: R: R: Squid 3 build errors on Visual Studio - problem still present

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

2009-09-02 Thread Henrik Nordstrom
ons 2009-09-02 klockan 21:11 +0200 skrev Guido Serassio: Hi, OK, but what next ? Can you produce a preprocessed source? That's the output of just the preprocessor, not actual compilarion, comparable to gcc -E option. Easier to identify what the compiler actually saw that way... Regards

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

2009-08-31 Thread Guido Serassio
: Re: R: R: Squid 3 build errors on Visual Studio - problem still present On Sun, 2009-08-30 at 18:13 +0200, Guido Serassio wrote: Hi, I don't know what is std::string::npos, and so I don't know what to look for http://www.cplusplus.com/reference/string/string/npos/ It should

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

2009-08-30 Thread Guido Serassio
Hi, The patch from Amos fix the warning (not blocking problem), but the compile problem is still present, and I don't know how to fix it. Any file including SquidString.h doesn't build with following error: c:\work\nt-3.0\src\SquidString.h(98) : error C2057: expected constant expression The

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

2009-08-30 Thread Robert Collins
On Sun, 2009-08-30 at 09:48 +0200, Guido Serassio wrote: c:\work\nt-3.0\src\SquidString.h(98) : error C2057: expected constant expression The offending code is: const static size_type npos = std::string::npos; Can you find out what std::string::npos is defined as in your compiler's

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

2009-08-30 Thread Robert Collins
On Sun, 2009-08-30 at 18:13 +0200, Guido Serassio wrote: Hi, I don't know what is std::string::npos, and so I don't know what to look for http://www.cplusplus.com/reference/string/string/npos/ It should be a static const, which is why I'm so surprised you're getting an error about it.