This turns out to be some kind of mess with my makefile.
I have two ways to build a project: splitted cpp files, which make objects and all headers and cpp-s packed into one header file to be used.
If I pack them, it works.
I experiment with my makefile, so it is very well possible, there is something off. But not necessarily.
However, I doubt if anyone has time to read this...