title: OpenCV 3 C++ : library not found
body: <p>I am trying to setup OpenCV 3 in Eclipse (Windows) using Cygwin C++ compiler.</p>
  
  <p><strong>Cygwin Path</strong> : "C:\cygwin64" (already included in System Path)</p>
  
  <p><strong>OpenCV Include Path</strong> : "E:\cv\opencv\eclipse\install\include"</p>
  
  <p><strong>OpenCV Library Path</strong> : "E:\cv\opencv\eclipse\lib" (has all libraries eg.libopencv_highgui310)</p>
  
  <p>When I am trying to build a face detection c++ code</p>
  
  <pre><code>#include "opencv2/objdetect/objdetect.hpp"
  #include "opencv2/highgui/highgui.hpp"
  #include "opencv2/imgproc/imgproc.hpp"
  </code></pre>
  
  <p>Error output,</p>
  
  <pre><code>/usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/bin/ld: skipping incompatible E:\cv\opencv\eclipse\lib/libopencv_highgui310.dll.a when searching for -llibopencv_highgui310
  /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/bin/ld: skipping incompatible E:\cv\opencv\eclipse\lib/libopencv_highgui310.dll.a when searching for -llibopencv_highgui310
  /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/bin/ld: cannot find -llibopencv_highgui310
  /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/bin/ld: skipping incompatible E:\cv\opencv\eclipse\lib/libopencv_objdetect310.dll.a when searching for -llibopencv_objdetect310
  /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/bin/ld: skipping incompatible E:\cv\opencv\eclipse\lib/libopencv_objdetect310.dll.a when searching for -llibopencv_objdetect310
  /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/bin/ld: cannot find -llibopencv_objdetect310
  /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/bin/ld: skipping incompatible E:\cv\opencv\eclipse\lib/libopencv_imgproc310.dll.a when searching for -llibopencv_imgproc310
  /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/bin/ld: skipping incompatible E:\cv\opencv\eclipse\lib/libopencv_imgproc310.dll.a when searching for -llibopencv_imgproc310
  /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/bin/ld: cannot find -llibopencv_imgproc310
  collect2: error: ld returned 1 exit status
  makefile:45: recipe for target 'opencv_cpp_v2.exe' failed
  </code></pre>
  
  <p>Can someone help with ths error ?</p>