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


Title: RE: `malloc_alloc' not declared

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


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