title: G++ compiling on Cygwin
body: <p>I am following Naotoshi Seo <a href="http://note.sonots.com/SciSoftware/haartraining.html" rel="nofollow">tutorial</a> for OpenCV haartraining. I am trying to compile his script that should merge previously generated *.vec files into one. </p>
  
  <p>My working environment is Windows 7 x64 and Cygwin</p>
  
  <p>When I run the code:</p>
  
  <pre><code>$ g++ 'pkg-config --libs --cflags opencv' -I. -o mergevec mergevec.cpp cvboost.cpp cvcommon.cpp cvsamples.cpp cvhaarclassifier.cpp cvhaartraining.cpp
  </code></pre>
  
  <p>I get error:</p>
  
  <pre><code> $ g++: error: pkg-config --libs --cflags opencv: No such file or directory
  </code></pre>
  
  <p>Please note that the file mergevec.cpp has been copied to the directory where I run the code from.</p>
  
  <p>Hope that somebody will be able to help me with my problem.</p>
  
  <p>Thanks</p>