This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: `malloc_alloc' not declared
- From: Stephen M. Webb <stephenw at cryptocard dot com>
- To: Robin Qiu <rqiu at innovance dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Mon, 9 Sep 2002 09:06:46 -0400
- Subject: Re: `malloc_alloc' not declared
- References: <EB38D5AB3238D611A91000306E1CE45F4E22D9@postal.innovance.com>
- Reply-to: stephenw at cryptocard dot com
On September 8, 2002 05:05 pm, Robin Qiu wrote:
>
> > > class std::queue' redeclared as different kind of symbol
>
> /usr/include/sys/stream.h:67: previous declaration of `struct queue'
>
> "queue" is declared in /usr/include/sys/stream.h:67
> and in bits/stl_queue.h. How do I resolve this redeclaration?
I doubt sys/stream.h is declaring std::queue, so I suspect you've got
either a "using namespace std" or a "using std::queue" in your code.
Change the above so you fully qualify names. That's exactly what
namespaces were invented for.
--
Stephen M. Webb