In CTest.cpp, you need to add the line:
bool ns_test::CTest::m_bPrivateMember;
This defines
the static member, the entry in the class only declares
it.
Note that the above will initialise it with false
. You may want to make that explicit, or true
:
bool ns_test::CTest::m_bPrivateMember = true;
Note this is an example of the One Definition Rule: you need to define
each global exactly once.