This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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]

Using C++ - Problem with <cstdlib>


Hello,

I'm currently playing around with an RTL pass and started using C++.
When including <algorithm> I get the following:

/usr/include/c++/4.6/cstdlib:76:8: error: attempt to use poisoned
"calloc"
/usr/include/c++/4.6/cstdlib:83:8: error: attempt to use poisoned
"malloc"
/usr/include/c++/4.6/cstdlib:89:8: error: attempt to use poisoned
"realloc"

It seems the story is old:
http://gcc.gnu.org/ml/gcc/2009-08/msg00553.html

Now that the switch to C++ has been made, how should this be handled?


Cheers,
Oleg


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