How to circumvent "attempt to use poisoned malloc/calloc" errors with GCC?
So I'm going to just go ahead and assume that #pragma poison calloc
is in your header files rather than in system header files.
Recommended general solution: include all system headers before using #pragma poison
; this can get tricky when multiple program headers but it really needs to be done.
The alternative is to just up and remove #pragma poison
from the source code and the safeguard with it.