This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: `malloc_alloc' not declared


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]