The problem I've got is that when I try to include LogUtil.h twice or more times, I've got the link error that "Log lcout" is already define in another file.
I tried Singleton desing pattern, but I've got the same error. If everyone know how do I solve this problem, please help me.
No. The extern keyword tells the compiler that the symbol being declared is defined in a different file.
It's like when you declare and define a function in two different files, only with variables and objects, extern must be used.