unresolved external symbol in c++
<p>I have defined a global variable in a c++ file. eg: <code>bool _variable =1;</code></p>

<p>Now i use this variable in other c++ file using :   <code>extern bool _variable</code>.</p>

<p>But i am getting the error  <code>error LNK2001: unresolved external symbol
"bool _variable" (?_variable@@3_NA)</code>.</p>

<p>How can i resolve this error??</p>
