title: gtest problem with inline function
body: <p>hello i have which include inline function, when i try testing this class with google test, i have error like:</p>
  
  <pre><code> error LNK2019: unresolved external symbol "public: double __thiscall Math::returnPi(void)" (?returnPi@Math@@QAENXZ) referenced in function "private: virtual void __thiscall Speed_Math_Test::TestBody(void)" (?TestBody@Speed_Math_Test@@EAEXXZ)
  </code></pre>
  
  <p>for example my class(header file)</p>
  
  <pre><code>class Math
  {
  public:
      Math(void);
      inline double returnPi();
      ~Math(void);
  };
  </code></pre>
  
  <p>my class(cpp file)</p>
  
  <pre><code>Math::Math(void)
  {}
  Math::~Math(void)
  {}
  double Math::returnPi()
  { return 3.14;}
  </code></pre>
  
  <p>test:</p>
  
  <pre><code>TEST(EQ, Math)
  {
      Math *m=new Math();
      EXPECT_EQ(3.14,m-&gt;returnPi());
  }
  </code></pre>
  
  <p>what i need to do? i read manual but dont see how i can resolved this error.</p>