`malloc_alloc' not declared

Robin Qiu rqiu@innovance.com
Sun Sep 8 14:07:00 GMT 2002


Hi Loren,

Thanks for the reply. What does it mean "Any macro that starts
with __ is in library implementation space..."? I couldn't find
"malloc_alloc" anywhere in libstdc++-v3, and couldn't find relevant
information
in the commentary in libstdc++-v3. Can you give me more details?

Encountered another problem with "queue":
In file included from
/home/rqiu/ERel1_wa/src/iesw_oam/util/OamBlockingQueue.h:34,
                 from
/home/rqiu/ERel1_wa/src/iesw_oam/include/OamFwExternal.h:33,
                 from BaseMenuMibAuto_nsc.cpp:6:
/home/rqiu/ERel1_wa/src/iesw_oam/util/OamBlockingQueue_solaris.h:29: `
   template<class _Tp, class _Sequence = std::deque<_Tp,
std::allocator<_CharT> 
   > > 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?

Thanks again.

Robin

-----Original Message-----
From: Loren James Rittle [mailto:rittle@latour.rsch.comm.mot.com]
Sent: Friday, September 06, 2002 6:49 PM
To: libstdc++@gcc.gnu.org
Cc: rqiu@Innovance.com
Subject: Re: `malloc_alloc' not declared



> I defined __USE_MALLOC in my code, but got error:
> /usr/local/include/g++-v3/backward/alloc.h:57, `malloc_alloc' not declared

Please read the commentary in libstdc++-v3.  Any macro that starts
with __ is in library implementation space...  There is a way to use
it but it may have changed since libstdc++-v2 (as shipped with pre-gcc
3.0).

Regards,
Loren
-- 
Loren J. Rittle, Principal Staff Engineer, Motorola Labs (IL02/2240)
rittle@labs.mot.com, KeyID: 2048/ADCE34A5, FDC0292446937F2A240BC07D42763672
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20020908/ef619e06/attachment.htm>


More information about the Libstdc++ mailing list