title: Redefinition of  function
body: <p>I have one file <code>example1.cpp</code> with the <code>main</code> function. This file must have <code>#include mylib.h</code> and <code>#include lib.h</code>. File <code>mylib.h</code> also has <code>#include lib.h</code>. When I try to compile this program, the error <code>redefinition xyz function</code> ocurs.</p>
  
  <p>example1.cpp</p>
  
  <pre><code>#include mylib.h
  #include lib.h
  
  int main(){
  //code
  }
  </code></pre>
  
  <p>mylib.h </p>
  
  <pre><code>#include lib.h
  
  //rest code
  </code></pre>