So, thanks to this website, I found the answer to my previous problem. I\'m adding a function to a class in a GNU automake project that uses a pointer to a doc
You are missing include guardians. if you just include files they are just pasted you need to make sure when they are included multiple times that they other times the code isn't duplicated. so you use a construct like this.
#ifndef _XXX_
#define _XXX_
/* your header here */
#endif