title: google testing missing DSO
body: <p>I'm learning to google test. I downloaded gtest, ran commands <code>./configure</code> and <code>make</code> and ended with</p>
  
  <pre><code>$ sudo cp -a include/gtest /usr/include
  $ sudo cp -a lib/.libs/* /usr/lib/
  </code></pre>
  
  <p>i got all this from <a href="https://stackoverflow.com/questions/13513905/how-to-properly-setup-googletest-on-linux">here</a>. I tried to run this code</p>
  
  <pre><code>#include &lt;gtest/gtest.h&gt;
  TEST(MathTest, TwoPlusTwoEqualsFour) {
      EXPECT_EQ(2 + 2, 4);
  }
  
  int main(int argc, char **argv) {
      ::testing::InitGoogleTest( &amp;argc, argv );
      return RUN_ALL_TESTS();
  }
  </code></pre>
  
  <p>like this </p>
  
  <pre><code> $ export GTEST_HOME=~/usr/gtest
   $ export LD_LIBRARY_PATH=$GTEST_HOME/lib:$LD_LIBRARY_PATH
   $ g++ -I $GTEST_HOME/include -L $GTEST_HOME/lib -lgtest -lgtest_main -lpthread test.cpp
  </code></pre>
  
  <p>but i received an error</p>
  
  <pre><code>/usr/bin/ld: /tmp/ccVTj3Rk.o: undefined reference to symbol '_ZN7testing8internal9EqFailureEPKcS2_RKSsS4_b'
  /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libgtest.so: error adding symbols: DSO missing from command line
  collect2: error: ld returned 1 exit status
  </code></pre>
  
  <p>Am i doing something wrong or is it a bug?</p>