apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Viner" <dvi...@yahoo-inc.com>
Subject RE: problem compiling code with APR and STL
Date Fri, 14 Feb 2003 01:04:45 GMT
removing "using namespace std;" did the trick.  

thanks
dave


-----Original Message-----
From: Greg Marr [mailto:gregm@alum.wpi.edu]
Sent: Thursday, February 13, 2003 4:39 PM
To: Dave Viner; dev@apr.apache.org
Subject: Re: problem compiling code with APR and STL


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 
>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.



Mime
View raw message