I fixed the error long ago, but I preferred to share it for anyone that may experience this error.
The solution is fairly simple, just ensure that all includes in your project are based on the file location. For example, I have a header located at /src/class/class.h and a source file at /src/class/class.cpp
Ensure that in the implementation you use something like this:
@
#include "chat.h"
@
instead of
@#include "/src/class/class.h"@
This applies both when you include a class in the declaration and/or in the implementation.
Hope it helps,
Alex.