`malloc_alloc' not declared

Stephen M. Webb stephenw@cryptocard.com
Mon Sep 9 05:55:00 GMT 2002


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



More information about the Libstdc++ mailing list