title: Mingw and Eclipse unable to find library
body: <p>I'm having the issues simlar to what's described <a href="https://stackoverflow.com/questions/9127623/mingw-eclipse-ld-exe-does-not-find-libraries">here</a>. I created a new project, added the library path in Eclipse and added the name of the library to use. But the MingW linker can't find the library. I've tried using "/" instead of "\" (this was the solution to the issue Iiked to), as well as several other things, but no luck. Couldn't find anything that worked in the mingw documentation.</p>
  
  <p>My command is as follows:</p>
  
  <pre><code>g++ -LD:/ocv/build/x86/mingw/lib -o OCVTest.exe "src\\OCVTest.o" -ltest.a 
  c:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/ld.exe: cannot find -ltest.a
  collect2.exe: error: ld returned 1 exit status
  </code></pre>
  
  <p>The file is called test.a</p>
  
  <p>In command line I tried using</p>
  
  <pre><code>g++ -L"D:/ocv/build/x86/mingw/lib" -o OCVTest.exe "src\\OCVTest.o" -ltest.a 
  </code></pre>
  
  <p>But this didn't help either.</p>
  
  <p>I installed MingW and Make for Windows. I added both of those to my PATH variable.</p>