apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Marr" <gr...@alum.wpi.edu>
Subject Re: problem compiling code with APR and STL
Date Fri, 14 Feb 2003 00:39:14 GMT
On Thu, 13 Feb 2003 16:26:43 -0800
  "Dave Viner" <dviner@yahoo-inc.com> 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 
>..\..\..\..\..\..\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.

View raw message