removing "using namespace std;" did the trick.  

thanks
dave


-----Original Message-----
From: Greg Marr [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 13, 2003 4:39 PM
To: Dave Viner; [email protected]
Subject: Re: problem compiling code with APR and STL


On Thu, 13 Feb 2003 16:26:43 -0800
  "Dave Viner" <[EMAIL PROTECTED]> wrote:
>I'm trying to compile a pretty simple C++ library using STL and APR.
>However, just including the header files, I get this compilation 
>error:
>
>..\..\..\..\..\..\apr\apr\include\apr_allocator.h(103) : error C2955:
>'allocator' : use of class template requires template argument list
>         C:\Program Files\Microsoft Visual 
>Studio\VC98\INCLUDE\xmemory(72) :
>see declaration of 'allocator'
>
>Has anyone else seen this or know how to fix it?

If you're using "using std;", remove it.  If you're not, or that 
doesn't help, you'll need to rename all the of prototype parameters to 
not match the name of a prototyped class.  This is a rather annoying 
bug (IMHO) in MSVC that bites us all the time.


Reply via email to