I was asked to implement malloc and free.. I implememented those in my malloc.c file which includes malloc.h file and in malloc.h file I have these macro
#define malloc( x ) mymalloc( x, __FILE__ , __LINE__ )
#define free( x ) myfree( x, __FILE__ , __LINE__ )
#define calloc( x,y ) mycalloc( x, y, __FILE__, __LINE__ )
Whenever I use malloc(10) or something in my main function, it says undefined reference to mymalloc