This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
How to include <algorithm> header of stl in gcc?
- From: Pritam Gharat <pritamg at cse dot iitb dot ac dot in>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 20 Feb 2014 17:49:59 +0530
- Subject: How to include <algorithm> header of stl in gcc?
- Authentication-results: sourceware.org; auth=none
Hi,
I am using sets of stl in gcc. I need to perform operations like set
union, set intersection and set difference for my analysis. These
functions are defined in the header <algorithm>. However, when I include
this header in my file, I get the following error:
/home/pritam/GCC_BUILDS/gcc_4.7/install/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../include/c++/4.7.2/cstdlib:76:8:
error: attempt to use poisoned "calloc"
/home/pritam/GCC_BUILDS/gcc_4.7/install/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../include/c++/4.7.2/cstdlib:83:8:
error: attempt to use poisoned "malloc"
/home/pritam/GCC_BUILDS/gcc_4.7/install/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../include/c++/4.7.2/cstdlib:89:8:
error: attempt to use poisoned "realloc"
/home/pritam/GCC_BUILDS/gcc_4.7/install/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../include/c++/4.7.2/cstdlib:112:11:
error: attempt to use poisoned "calloc"
/home/pritam/GCC_BUILDS/gcc_4.7/install/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../include/c++/4.7.2/cstdlib:119:11:
error: attempt to use poisoned "malloc"
/home/pritam/GCC_BUILDS/gcc_4.7/install/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../include/c++/4.7.2/cstdlib:127:11:
error: attempt to use poisoned "realloc"
make: *** [pointsto-callstrings.o] Error 1
How can I resolve this problem?
--
Thanks,
Pritam Gharat