title: unable to compile googletest in eclipse
body: <p>I am trying to compile googletest (git clone <a href="https://github.com/google/googletest.git" rel="nofollow noreferrer">https://github.com/google/googletest.git</a> -b release-1.11.0) but keep getting 1000+ linker errors.</p>
  <p>I am running windows 10, eclipse CDT (latest), mingw (latest) gcc. I created an eclipse c++ project (executable, empty project).</p>
  <p>added include paths to:</p>
  <ul>
  <li>googletest</li>
  <li>googletest/includes</li>
  <li>googlemock</li>
  <li>googlemock/includes</li>
  </ul>
  <p>added source location to:</p>
  <ul>
  <li>googletest/src</li>
  <li>googlemock/src</li>
  </ul>
  <p>All is compiled without problems, but linking fails with 1000+ errors. Eg.</p>
  <pre><code>C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
  googletest\gtest.o: in function `testing::IsNotSubstring(char const*, char const*, wchar_t const*, wchar_t const*)':
  C:\dev\unode\eclipse\unit_tests\Debug/../../googletest/googletest/src/gtest.cc:1821: multiple definition of `testing::IsNotSubstring(char const*, char const*, wchar_t const*, wchar_t const*)';
  googletest\gtest-all.o:C:/dev/unode/eclipse/googletest/googletest/src/gtest.cc:1821: first defined here
  C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
  googletest\gtest.o: in function `testing::IsSubstring(char const*, char const*, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;)':
  C:\dev\unode\eclipse\unit_tests\Debug/../../googletest/googletest/src/gtest.cc:1827: multiple definition of `testing::IsSubstring(char const*, char const*, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;)';
  googletest\gtest-all.o:C:/dev/unode/eclipse/googletest/googletest/src/gtest.cc:1827: first defined here
  C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
  googletest\gtest.o: in function `testing::IsNotSubstring(char const*, char const*, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;)':
  </code></pre>
  <p>I am reading googletests readme.md to figure out what I am doing wrong but getting nowhere. Some help would be greatly appreciated</p>