title: Visual C++ 2010 - fatal error LNK1169: one or more multiply defined symbols found
body: <p>this is a program :</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main() {
  cout &lt;&lt; "Enter a number";
  int i;
  cin &gt;&gt; i;
  try {
      if( i == 0 ) throw 0;
      if( i == 2 ) throw "error";
  } catch( int i ) {
      cout &lt;&lt; "can't divide by 0";
   }
     catch( ... ) {
         cout &lt;&lt; "catching other exceptions";
     }
  }
  </code></pre>
  
  <p>On compiling (Microsoft visual C++ 2010 express on Windows 7), I get the error which says:</p>
  
  <blockquote>
    <p>fatal error LNK1169: one or more
    multiply defined symbols found</p>
  </blockquote>