malloc undefined reference code example Example: malloc is undefined // You need: #include <stdlib.h>