As you see in the following image, when I comment one of the include "gui.cpp" or include <gui.cpp>, I have a red cross error in the right side of using namespace GUI. but when I include both of them, the error removed. Does anyone have any idea?

Don't include
.cppfiles, or any source files. You should only include header files. Let the linker deal with source files.You should create a
gui.hand include that instead.