title: Using struct in different .cpp file
body: <p>I have two .cpp files in one project, main.cpp and myfile.cpp</p>
  
  <p>I have globaly defined struct mystruct in main.cpp, now I want to use this struct in myfile.cpp.
  When I write mystruct in a header file and include in both cpp files I get an error, saying mystruct redefinition. How should I solve this problem.</p>