title: unwanted constructor calls before main()
body: <p>I am working on some multi-thread code with <em>pthreads</em>. When I discovered some memory-leaks (via <em>valgrind</em>), I simply added some</p>
  
  <pre><code>cout &lt;&lt; " new [some name of class for me]" &lt;&lt; endl;
  </code></pre>
  
  <p>in part of constructors, because I thought I have removed all of them. This revealed that part of them are launched before <strong><em>main().</em></strong> I have removed everything from main(), so it looks like:</p>
  
  <pre><code>int main(){
      return 0;
  }
  </code></pre>
  
  <p>Even without any <strong><em>#includes</em></strong> those constructors are still invoked. I think nothing from the previous code should be invoked in this case. I used <em>"project clean"</em> option in eclipse and try to delete binaries (<em>Debug/Release</em>). Nothing helps .. </p>
  
  <p>What is the purpose of that? What else I can do?
  Thanks in advance. </p>