In Visual C++, i faced "fatal error LNK1169: one or more multiply defined symbols found" with below code, How can i solve the problem if i wanna include both header file in both source for the other functions usage?
main.cpp
========
#include main.h
#include sub.h
sub.cpp
========
#include main.h
#include sub.h
sub.h
=========
typedef struct{
char colour;
char name;
}person;
person ssss = { red, ali};