H
hyling.s1
Hi I'm getting "unresolved external symbol" linker errors from VC++
2003 when I use a static instance of a class for example
class myClass
{
protected:
static class2 mInstance; /* fails with "unresolved external symbol" */
static int mVar; /* works fine if I init it in the .cpp with: int
myClass:mVar = 0; */
}
What am I doing wrong?
Thanks
Hua-Ying
2003 when I use a static instance of a class for example
class myClass
{
protected:
static class2 mInstance; /* fails with "unresolved external symbol" */
static int mVar; /* works fine if I init it in the .cpp with: int
myClass:mVar = 0; */
}
What am I doing wrong?
Thanks
Hua-Ying