Hello,
First part of problem solved by changing order of includes as follows:
In file debug.c
#include<stdio.h> #include<stdarg.h> #include<string.h> #include<stdlib.h> #include "debug.h" (debug.h comes after stdio.h)
But then there are other problems ahead