I have defined a global variable in a c++ file. eg: bool _variable =1;
Now i use this variable in other c++ file using : extern bool _variable
.
But i am getting the error error LNK2001: unresolved external symbol
"bool _variable" (?_variable@@3_NA)
.
How can i resolve this error??