error LNK2005, already defined?
<p>I have 2 files A.cpp and B.cpp files in a project "Win32 Console Application".</p>

<p>Both 2 files have only 2 lines following code:</p>

<pre><code>#include "stdafx.h"
int k;
</code></pre>

<p>When compiling it threw the error</p>

<pre><code>Error   1   error LNK2005: "int k" (?a@@3HA) already defined in A.obj
</code></pre>

<p>I don't understand what happen?</p>

<p>Someone please explain to me?</p>

<p>Many thanks,</p>

<p>T&amp;TGroup</p>
