title: GoogleTest of static method c++ using header files
body: <p>So i need to use gTest.</p>
  
  <p>I have a util class with static functions.</p>
  
  <p>The header file contain the declerations of the functions:</p>
  
  <pre><code>class a
  {
  public:
      a();
      virtual ~a();
  
      static bool test();
  }
  </code></pre>
  
  <p>on the cpp file the implementations:</p>
  
  <pre><code>a::a() { }
  a::~a() { }
  bool a::test() { return true; }
  </code></pre>
  
  <p>on the test unit file i just added a test :</p>
  
  <pre><code>TEST(a, a)
  {
    EXPECT_EQ(true,a::test());  
  }
  </code></pre>
  
  <p>I'm getting a linker error :</p>
  
  <pre><code>Error   3   error LNK2001: unresolved external symbol "public: static bool __cdecl a::test()" (?test@a@@SA_NIPAD0@Z)    UnitTest.obj    UnitTest
  </code></pre>
  
  <p>if the implementation of the static function is in the .h file , everything work smoothly.</p>
  
  <p>is there anyway to uni test static function that way?</p>