This is for dynamic memory allocation, but it is not the standard ANSI C library. If you use gcc, use stdlib to allocate dynamic memory:
#include <stdlib.h>
For more information, see here .
If you carefully read the question you linked, in fact the problem was precisely what you were trying to compile gcc, including this header. Therefore, do not use it.
Heisenbug
source share