title: Google test with Eclipse on Windows
body: <p>I am trying to setup google test with Eclipse.
  This is what I have done so far:</p>
  
  <p>Initial Setup:</p>
  
  <ol>
  <li>Installed CDT on Eclipse Helios.</li>
  <li>Downloaded and installed Cygwin.</li>
  <li>Downloaded and extracted gtest.</li>
  <li>built gtest using cygwin make using the default makefile.</li>
  </ol>
  
  <p>In eclipse:</p>
  
  <ol>
  <li>Created an empty executable c++ project with Cygwin in ToolChain.</li>
  <li>Added "[gtest_dir]\include" in C++ Build/Settings/Cygwin C++ Compiler</li>
  <li>Added library path as "[gtest_dir]\make" under C++ Build/Settings/Cygwin C++ Linker</li>
  <li>Builder was already GNU Make builder</li>
  <li>Wrote some example C++ code and built project.</li>
  </ol>
  
  <p>I am facing the following error when I build the project:</p>
  
  <p>Building target: SampleCpp.exe
  Invoking: Cygwin C++ Linker
  g++ -L/cygdrive/d/gtest-1.7.0/make -o"SampleCpp.exe"  ./src/Counter.o ./src/Counter_tests.o   -lgtest
  <strong>/usr/lib/gcc/i686-pc-cygwin/4.8.2/../../../../i686-pc-cygwin/bin/ld: cannot find -lgtest
  collect2: error: ld returned 1 exit status</strong>
  makefile:45: recipe for target 'SampleCpp.exe' failed</p>
  
  <p>What am I missing?</p>
  
  <p><strong>EDIT 1</strong> : [gtest_dir]\make contains two .a files - 
  <strong>gtest.a</strong> and <strong>gtest_main.a</strong></p>
  
  <p>Also I'm using Eclipse Helios</p>
  
  <p><strong>EDIT 2</strong> :</p>
  
  <p>It worked after I renamed <strong>gtest.a</strong> to <strong>gtest.lib</strong>. Is this the expected naming format for a library on Windows?</p>